Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'binary': 0.07; 'upgraded': 0.07; 'lawrence': 0.09; 'matplotlib': 0.09; 'properly.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '2.7': 0.14; 'language.': 0.14; '33,': 0.16; 'mixture': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:/ 70': 0.16; 'subject:import': 0.16; 'sys.path': 0.16; 'language': 0.16; 'wrote:': 0.18; 'feb': 0.22; '>>>': 0.22; 'import': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'looks': 0.24; 'compiled': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; "doesn't": 0.30; 'url:mailman': 0.30; 'work.': 0.31; 'included': 0.31; '"",': 0.31; 'fine,': 0.31; 'file': 0.32; 'there.': 0.32; 'python.org': 0.32; 'stuff': 0.32; 'run': 0.32; 'another': 0.32; 'worked': 0.33; 'url:python': 0.33; '(most': 0.33; 'fri,': 0.33; 'but': 0.35; 'skip:" 50': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'error.': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'skip:u 10': 0.60; 'hardware': 0.61; 'took': 0.61; 'our': 0.64; 'more': 0.64; 'charset:windows-1252': 0.65; 'smith': 0.68; 'article': 0.77; '2015': 0.84; 'skip:/ 30': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Matplotlib import error Date: Sat, 07 Feb 2015 15:36:25 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-24-222-48.ppp.as43234.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 51 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1423323401 news.xs4all.nl 2873 [2001:888:2000:d::a6]:36180 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85331 On 07/02/2015 15:23, C Smith wrote: > On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote: >> In article >> , >> C Smith 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 "", line 1, in >>> File "/Library/Python/2.7/site-packages/matplotlib/__init__.py", >>> line 180, in >>> from matplotlib.cbook import is_string_like >>> File "/Library/Python/2.7/site-packages/matplotlib/cbook.py", line >>> 33, in >> >> 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