-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_NamespacePath object has no attribute sort (38.5.1) #1282
Comments
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:
Should be:
As a general rule (if practical), in-place sorting should not be used. |
I've updated the comment in 885 to indicate more clearly that the
That seems reasonable to me; I retained the mutating behavior as I couldn't be sure what interfaces might be relying on it. We could certainly try your suggestion. Guaranteed it won't fix the reported issue, though. |
@jaraco pip 9.0.2, released 2 days ago includes the fix from setuptools, but still shows the exact same problem. |
I was looking at the wrong tree - pip 9.0.2 is indeed missing this fix. |
Your solution did the trick, thanks a lot! |
I can't believe this is not a Prio 1 ticket, but actually closed! The fix still appear to be unshipped, and I am getting tired of applying the edit manually after some new py install;) please guys, could someone just merge that? for the fix, see: #1282 (comment) |
@oberstet I upgraded pip to 9.0.3 and it works there. |
sudo pip3 install -U setuptools |
After I have remove files related to pip3 and apt-get remove python3-pip, I refer to https://pip.pypa.io/en/stable/installing/ |
Using Python 3.6, pip 9.0.1 and 38.5.1 I get the following error:
This is a virtualenv made yesterday using pipenv.
As requested in #885 the nspath data is:
The text was updated successfully, but these errors were encountered: