Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85331 > unrolled thread

Re: Matplotlib import error

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2015-02-07 15:36 +0000
Last post2015-02-07 15:36 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Matplotlib import error Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-07 15:36 +0000

#85331 — Re: Matplotlib import error

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-02-07 15:36 +0000
SubjectRe: Matplotlib import error
Message-ID<mailman.18531.1423323401.18130.python-list@python.org>
On 07/02/2015 15:23, C Smith wrote:
> On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily <nad@acm.org> wrote:
>> In article
>> <CAL2Y8-RVCoy-mBWAbgGqPkazo_xW-x4q0NTyG+A5sm19sg=xmQ@mail.gmail.com>,
>>   C Smith <illusiontechniques@gmail.com> wrote:
>>> I had python 2.7.6 installed on OS X yosemite, which has always worked
>>> fine, until I tried to install matplotlib with pip. I got the same
>>> error below and upgraded to 2.7.9, used pip to upgrade all the
>>> packages, but still get the same error.
>>>
>>>>>> import matplotlib
>>> Traceback (most recent call last):
>>>    File "<stdin>", line 1, in <module>
>>>    File "/Library/Python/2.7/site-packages/matplotlib/__init__.py",
>>> line 180, in <module>
>>>      from matplotlib.cbook import is_string_like
>>>    File "/Library/Python/2.7/site-packages/matplotlib/cbook.py", line
>>> 33, in <module>
>>
>> It looks like you have a mixture of packages, some left over from using
>> the system Python 2.7 and, unfortunately, the system Python site-package
>> directory is included at the sys.path search path for other Pythons,
>> like the python.org Pythons.  If you plan to just use the Python 2.7.9,
>> go to /Library/Python/2.7/site-packages and rm everything there.  Then
>> use the 2.7.9 pip to install matplotlib.  It should download and install
>> (to
>> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-pack
>> ages) the binary wheels for matplotlib and its dependencies, including
>> numpy, and all just work.
>>
>> --
>>   Ned Deily,
>>   nad@acm.org
>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
> A lot of the stuff in that directory took a long time to get compiled
> and working properly. Buildozer, pcapy, scapy are more important than
> matplotlib to me, and they work well.
>

An alternative is to use another OS that perhaps doesn't run on 
overrated, overpriced hardware from an overrated company.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web