AttributeError: '_NamespacePath' object has no attribute 'sort' on Read ...
The _path_ attribute should always be treated as an interable, not a list (the Python docs describe _path_ as an iterable). The line in pkg_resources/_init_.py that reads: orig_path = sorted (orig_path, key=position_in_sys_path) As a general rule (if practical), in-place sorting should not be used. PS - I tried upgrading pip and setuptools but ...