Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed4a.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:error': 0.03; 'binary': 0.07; 'upgraded': 0.07; 'matplotlib': 0.09; 'properly.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '2.7': 0.14; '33,': 0.16; 'mixture': 0.16; 'skip:/ 70': 0.16; 'subject:import': 0.16; 'sys.path': 0.16; 'wrote:': 0.18; 'feb': 0.22; '>>>': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'error': 0.23; 'looks': 0.24; 'cc:2**0': 0.24; 'compiled': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'tried': 0.27; 'message-id:@mail.gmail.com': 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; 'worked': 0.33; 'url:python': 0.33; '(most': 0.33; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'skip:" 50': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'error.': 0.37; 'pm,': 0.38; 'recent': 0.39; 'url:mail': 0.40; 'skip:u 10': 0.60; 'took': 0.61; 'more': 0.64; 'smith': 0.68; 'article': 0.77; '2015': 0.84; 'skip:/ 30': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Dc7qc3PJutVDizG8q0KkzgNw42P2Kb1QuQTEhdvJquU=; b=XRAAh//r7uEAq4k97OyksZtKo1LjhMpbHELeZW+0qfmHQYCz9L1RghCEbroQyXAiQP 5rnrJ9zzIe+efHlYk+I7+fSSLjXjC25oBzl8hBN/9PGei7tCiHTu2E1wIfQkt6JkIdUY kFMg6QZPRPlpKGsWCCFF2GalNZYPy99Pw7YBC+yCLNIlXS7afQIws+wcmtOfXwMj1MJ5 9Uu0V/2xlOxoTZthZdffGRsrtp4ejXJFPcRP9R6u3OSGUiujGusBGDtLEq1E9zBcENnq hBYjjzSvS1HxPgSikLSST+SXZW+gDAy+haMI5JTuzPEm7X/dkm4IYRAJveUuzejy4DPD mt6w== MIME-Version: 1.0 X-Received: by 10.152.115.139 with SMTP id jo11mr7857683lab.24.1423322610453; Sat, 07 Feb 2015 07:23:30 -0800 (PST) In-Reply-To: References: Date: Sat, 7 Feb 2015 07:23:30 -0800 Subject: Re: Matplotlib import error From: C Smith To: Ned Deily Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1423322618 news.xs4all.nl 2878 [2001:888:2000:d::a6]:60203 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85330 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.