|
From: Sterling S. <sm...@fu...> - 2013-10-02 16:50:02
|
I highly recommend macports[1] as the method to install matplotlib, as I have never had issues. -Sterling [1] http://www.macports.org/install.php On Oct 2, 2013, at 7:39AM, pymilo wrote: > Hello everyone, > > I want to work whit matplotlib and I installed it using pip command. > Apparently the installation was successful and when I open ipython and > import matplotlib everything works well. Nevertheless when I try to import > pyplot using: import matplotlib.pyplot I obtain this: > > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > <ipython-input-11-6f467123fe04> in <module>() > ----> 1 import matplotlib.pyplot > > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py > in <module>() > 22 > 23 import matplotlib > ---> 24 import matplotlib.colorbar > 25 from matplotlib import _pylab_helpers, interactive > 26 from matplotlib.cbook import dedent, silent_list, is_string_like, > is_numlike > . > . > . > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/mathtext.py > in <module>() > 60 > 61 import matplotlib.colors as mcolors > ---> 62 import matplotlib._png as _png > 63 #################### > 64 > > ImportError: > dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so, > 2): Symbol not found: _png_set_longjmp_fn > Referenced from: > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so > Expected in: flat namespace > in > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/_png.so > --------------------------------------------------------------------------- > > I have installed the libpng library as was suggested in other post but > nothing worked. I am working with a Mac OS X 10.7.5 and I have installed the > XQuartz 2.7.4. I really do not have a clue about what is happening with > that, I would appreciate so much if you can help me figure this problem out. > > > All the best! > Milo. > > > > > > > -- > View this message in context: http://matplotlib.1069221.n5.nabble.com/import-matplotlib-pyplot-does-not-work-tp42155.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |