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

An Error in 2013 ? #3551

Closed
StevenLOL opened this issue Mar 8, 2016 · 3 comments
Closed

An Error in 2013 ? #3551

StevenLOL opened this issue Mar 8, 2016 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@StevenLOL
Copy link

  • Pip version: 8.1.0
  • Python version: 2.7.10
  • Operating System: UBUNTU 15.10

Description:

// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?

What I've run:

UBUNTU 15.10

python --version
Python 2.7.10

sudo pip install pip -I

...successfully installed pip-8.1.0

sudo pip install setuptools

...Sucessfully ..... setuptools-20.2.2

sudo pip install protobuf -I

or any other package eg pyaudio

...Could not ..
...
...
No module named extern

The error is the same as an issue in 2013

#1064 (comment)

@StevenLOL
Copy link
Author

If reinstall setuptools:

sudo pip install setuptools -I
OR
wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python 

[ref](https://bitbucket.org/pypa/setuptools)

and build pip from source via

sudo python setup.py install

File "setup.py", line 6, in <module>
    from setuptools import setup, find_packages
  File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 11, in <module>
    from setuptools.extern.six.moves import filterfalse, map
  File "/usr/local/lib/python2.7/dist-packages/setuptools/extern/__init__.py", line 1, in <module>
    from pkg_resources.extern import VendorImporter
ImportError: No module named extern

@Ivoz
Copy link
Contributor

Ivoz commented Mar 8, 2016

@StevenLOL I would try running

$ pip uninstall setuptools
$ pip uninstall distribute

Do this a couple of times, in order to try to remove all traces of these projects.

Then you can reinstall, e.g with

$ wget https://bootstrap.pypa.io/get_pip.py -O - | sudo python 

OR

After you could try reinstalling the system copy of setuptools, e.g

$ sudo apt-get install --reinstall python-setuptools

@StevenLOL
Copy link
Author

wow, thanks @Ivoz

This seems fixed the problem

apt-get install --reinstall python-setuptools

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

2 participants