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

Matplotlib install breaks pip? #2573

Closed
jseabold opened this issue Nov 3, 2013 · 2 comments
Closed

Matplotlib install breaks pip? #2573

jseabold opened this issue Nov 3, 2013 · 2 comments

Comments

@jseabold
Copy link
Contributor

jseabold commented Nov 3, 2013

I'm setting up a new machine, and I just ran into this. I'm on 71cc71a.

As expected

|10 $ pip install --user nose
Requirement already satisfied (use --upgrade to upgrade): nose in /home/skipper/.local/lib/python2.7/site-packages

Ok. Now I install matplotlib.

python setup.py build && sudo python setup.py install

Now

|16 $ pip install --user nose
Traceback (most recent call last):
  File "/usr/bin/pip", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2825, in <module>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 710, in subscribe
    callback(dist)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2825, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2257, in activate
    self.insert_on(path)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2364, in insert_on
    self.check_version_conflict()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2403, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2251, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1219, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1211, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1326, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/python_dateutil-2.2-py2.7.egg/EGG-INFO/top_level.txt'

I don't recall ever seeing this before, but I also don't know that I've installed matplotlib on a machine on which the dateutil dependency wasn't already satisfied.

@jseabold
Copy link
Contributor Author

jseabold commented Nov 3, 2013

Hmm, it exists on older versions as well. The solution is to install dateutil before the sudo install step, but is this expected?

@tacaswell
Copy link
Member

I have hit things like this and (I think) the problem is that pip will try to remove system install during it's upgrade process.

Closing this as won't fix as this is pip problem, not a mpl problem. Please re-open if you disagree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants