On Aug 4, 2013, at 4:47 PM, Matthew Brett <matthew.br...@berkeley.edu> wrote:
> Hi, > > Congratulations on the new release. > > I just tried installing in a fresh installation of Python 2.7 from Python.org > > Am I right in thinking the recommended method is: > > pip install matplotlib > > ? I did this, and then: > >>>> import matplotlib.pyplot as plt > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py", > line 24, in <module> > import matplotlib.colorbar > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/colorbar.py", > line 29, in <module> > import matplotlib.collections as collections > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/collections.py", > line 23, in <module> > import matplotlib.backend_bases as backend_bases > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/backend_bases.py", > line 50, in <module> > import matplotlib.textpath as textpath > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/textpath.py", > line 14, in <module> > from matplotlib.mathtext import MathTextParser > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py", > line 62, in <module> > import matplotlib._png as _png > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so, > 2): Library not loaded: /usr/X11/lib/libpng12.0.dylib > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so > Reason: Incompatible library version: _png.so requires version > 42.0.0 or later, but libpng12.0.dylib provides version 36.0.0 > > There were no previous versions of matplotlib installed. This on OSX 10.6: > > Python 2.7.5 just installed from python.org > X11 installed from the Apple installation disks for 10.6 before `pip > install matplotlib` > No homebrew etc > > Any hints about how I should debug this further? > > Thanks a lot for any help, > > Matthew I was able to install numpy 1.7.1 and matplotlib 1.30 under OS X 10.6.8 with X11 version XQuartz 2.3.6 (xorg-server 1.4.2-apple56) and python 2.7.5 64-bit from python.org using pip 1.4. Have you tried running Software Update? If you installed X11 after updating to 10.6.8 you can run the combo updater ( http://support.apple.com/kb/DL1399 ) to get the latest X11. Alternately, you could try installing XQuartz from http://xquartz.macosforge.org/landing/ hth, Scott ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users