|
From: pymilo <cam...@gm...> - 2013-10-02 14:39:54
|
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.
|