Skip to content
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

pip broken pkg #1252

Closed
lyelibi opened this issue Jan 17, 2018 · 1 comment
Closed

pip broken pkg #1252

lyelibi opened this issue Jan 17, 2018 · 1 comment

Comments

@lyelibi
Copy link

lyelibi commented Jan 17, 2018

Hello,

for some reason pip3 doesn't work anymore. It seems to be a problem with multiple causes. After looking for a while, I would prefer to ask before I go down a rabbit hole lol.

Traceback (most recent call last):
File "/home/raio/.local/bin/pip3", line 7, in
from pip import main
File "/home/raio/.local/lib/python3.5/site-packages/pip/init.py", line 26, in
from pip.utils import get_installed_distributions, get_prog
File "/home/raio/.local/lib/python3.5/site-packages/pip/utils/init.py", line 27, in
from pip._vendor import pkg_resources
File "/home/raio/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py", line 3018, in
@_call_aside
File "/home/raio/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py", line 3004, in _call_aside
f(*args, **kwargs)
File "/home/raio/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py", line 3046, in _initialize_master_working_set
dist.activate(replace=False)
File "/home/raio/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py", line 2578, in activate
declare_namespace(pkg)
File "/home/raio/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py", line 2152, in declare_namespace
_handle_ns(packageName, path_item)
File "/home/raio/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py", line 2092, in _handle_ns
_rebuild_mod_path(path, packageName, module)
File "/home/raio/.local/lib/python3.5/site-packages/pip/_vendor/pkg_resources/init.py", line 2121, in _rebuild_mod_path
orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'

can you assist?

@jaraco
Copy link
Member

jaraco commented Jan 18, 2018

The issue is that one or more of your namespace packages installed in your environment was built with Setuptools prior to 31.0.1 and that pip hasn't been patched to work around the issue (pypa/pip#4216). Nothing we can do here.

@jaraco jaraco closed this as completed Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants