Re: [Matplotlib-users] import matplotlib.pyplot does not work

2013-10-02 Thread pymilo
Hello,

I don't know what exactly happened but after upgrade my python from 2.7.3 to
2.7.5 and uninstall and install again the matplotlib using pip, the pylab
worked well... Thank you in advance for your help.




--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/import-matplotlib-pyplot-does-not-work-tp42155p42160.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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] import matplotlib.pyplot does not work

2013-10-02 Thread Sterling Smith
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)
>  in ()
> > 1 import matplotlib.pyplot
> 
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib/pyplot.py
> in ()
> 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 ()
> 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
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users