[Matplotlib-users] Matplotlib installation with Python(x,y)
I have a system that has Python(x,y)-2.6.6.2.exe installed. When running the script "file.py" the following error occurs: /Traceback (most recent call last): File "file.py", line xx, in import File "includes\something.py", line 31, in import matplotlib.pyplot as plt File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 95, in new_figure_manager, draw_if_interactive, show = pylab_setup() File "C:\Python26\lib\site-packages\matplotlib\backends\__init__.py", line 25, in pylab_setup globals(),locals(),[backend_name]) File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 12, in from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\ File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py", line 18, in import matplotlib.backends.qt4_editor.figureoptions as figureoptions File "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py", line 11, in import matplotlib.backends.qt4_editor.formlayout as formlayout File "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", line 51, in raise ImportError, "Warning: formlayout requires PyQt4 >v4.3" ImportError: Warning: formlayout requires PyQt4 >v4.3 / I think this error message is not related with the real problem, since this is just an hardcoded string that is displayed in case the import fails (formlayout.py): /try: from PyQt4.QtGui import QFormLayout except ImportError: raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"/ If I remove this error message the new error message is that he cannot find the DLL. If I install matplotlib-1.0.1.win32-py2.6.exe then this error does not occur anymore. Could anyone please explain me what is the difference when the matplotlib is installed via Python(x,y) or when it is installed separately on top of Python(x,y)? I saw that there are a few differences on User and System Environment variable PATH, but I've tried different combinations and was not able to get rid of this error when the system does not have the matplotlib-1.0.1.win32-py2.6.exe installed. Thank you in advance for your support. Kind regards, Antonio -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149.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] Matplotlib installation with Python(x,y)
On 10/02/2013 05:35 AM, ajdcds wrote: > I have a system that has Python(x,y)-2.6.6.2.exe installed. > When running the script "file.py" the following error occurs: > > /Traceback (most recent call last): > File "file.py", line xx, in > import > File "includes\something.py", line 31, in > import matplotlib.pyplot as plt > File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 95, in > > new_figure_manager, draw_if_interactive, show = pylab_setup() > File "C:\Python26\lib\site-packages\matplotlib\backends\__init__.py", line > 25, in pylab_setup > globals(),locals(),[backend_name]) > File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", > line 12, in > from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\ > File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py", > line 18, in > import matplotlib.backends.qt4_editor.figureoptions as figureoptions > File > "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py", > line 11, in > import matplotlib.backends.qt4_editor.formlayout as formlayout > File > "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", > line 51, in > raise ImportError, "Warning: formlayout requires PyQt4 >v4.3" > ImportError: Warning: formlayout requires PyQt4 >v4.3 / > > I think this error message is not related with the real problem, since this > is just an hardcoded string that is displayed in case the import fails > (formlayout.py): > /try: > from PyQt4.QtGui import QFormLayout > except ImportError: > raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"/ > > If I remove this error message the new error message is that he cannot find > the DLL. Can you copy-and-paste the exact error message? That will offer some clues. Mike -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.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] Matplotlib installation with Python(x,y)
Hi Mike, thank you for your interest. If I replace the following statement on formlayout.py: /try: from PyQt4.QtGui import QFormLayout except ImportError: raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"/ With this one: /from PyQt4.QtGui import QFormLayout/ Then the error is the following: /Traceback (most recent call last): File "file.py", line 83, in import File "includes\something.py", line 31, in import matplotlib.pyplot as plt File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 95, in new_figure_manager, draw_if_interactive, show = pylab_setup() File "C:\Python26\lib\site-packages\matplotlib\backends\__init__.py", line 25, in pylab_setup globals(),locals(),[backend_name]) File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line 12, in from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\ File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py", line 18, in import matplotlib.backends.qt4_editor.figureoptions as figureoptions File "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py", line 11, in import matplotlib.backends.qt4_editor.formlayout as formlayout File "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", line 53, in from PyQt4.QtGui import QFormLayout ImportError: DLL load failed: The specified procedure could not be found./ -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42152.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] Matplotlib installation with Python(x,y)
It looks like the PyQt4 installation in python(x,y) is somehow broken. If you just open up the python(x, y) interpreter and type >>> from PyQt4.QtGui import QFormLayout or >>> from PyQt4 import QtGui what happens? If that fails too, I'd say the bug is in python(x, y) (or however PyQt4 got installled there). Mike On 10/02/2013 09:19 AM, ajdcds wrote: > Hi Mike, > > thank you for your interest. > > If I replace the following statement on formlayout.py: > > /try: > from PyQt4.QtGui import QFormLayout > except ImportError: > raise ImportError, "Warning: formlayout requires PyQt4 >v4.3"/ > > With this one: > > /from PyQt4.QtGui import QFormLayout/ > > Then the error is the following: > > /Traceback (most recent call last): >File "file.py", line 83, in > import >File "includes\something.py", line 31, in > import matplotlib.pyplot as plt >File "C:\Python26\lib\site-packages\matplotlib\pyplot.py", line 95, in > > new_figure_manager, draw_if_interactive, show = pylab_setup() >File "C:\Python26\lib\site-packages\matplotlib\backends\__init__.py", line > 25, in pylab_setup > globals(),locals(),[backend_name]) >File > "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4agg.py", line > 12, in > from backend_qt4 import QtCore, QtGui, FigureManagerQT, FigureCanvasQT,\ >File "C:\Python26\lib\site-packages\matplotlib\backends\backend_qt4.py", > line 18, in > import matplotlib.backends.qt4_editor.figureoptions as figureoptions >File > "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\figureoptions.py", > line 11, in > import matplotlib.backends.qt4_editor.formlayout as formlayout >File > "C:\Python26\lib\site-packages\matplotlib\backends\qt4_editor\formlayout.py", > line 53, in > from PyQt4.QtGui import QFormLayout > ImportError: DLL load failed: The specified procedure could not be found./ > > > > -- > View this message in context: > http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42152.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 -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.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] Matplotlib installation with Python(x,y)
No error message: >>> from PyQt4.QtGui import QFormLayout >>> -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Matplotlib-installation-with-Python-x-y-tp42149p42154.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
[Matplotlib-users] import matplotlib.pyplot does not work
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
Re: [Matplotlib-users] Matplotlib installation with Python(x,y)
Hi Antonio, (forgot to copy list - for archive) On 02/10/2013 17:05, António de Sousa wrote: Hi Werner, thank you for your reply. Yes, the path is C:\Python26\lib\ Can it be that the error message is coming from a different location? Meaning that there may be duplicate files (e.g. python related DLLs) in the system? I am guessing/suspecting that you don't always run the Python version you think you are running. So, just to double check, if you do: c:\Python26\python.exe from PyQt4.QtGui import QFormLayout You get no error? 'file.py' is your script which runs matplotlib, yes? if above gives no error what happens if you do: c:\Python26\python.exe file.py Werner -- 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
[Matplotlib-users] installing matplotlib 1.3.0
Hello everyone, I have a small problem installing the latest release of matplotlib. The following problem occurs during building (I just used 'pip install matplotlib' for it): /opt/pkg/compiler/gnu/gcc/4.7.1/bin/g++-4.7.1 -pthread -shared build/temp.linux-x86_64-2.7/src/_image.o build/temp.linux-x86_64-2.7/src/mplutils.o build/temp.linux-x86_64-2.7/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-2.7/agg24/src/agg_curves.o build/temp.linux-x86_64-2.7/agg24/src/agg_image_filters.o build/temp.linux-x86_64-2.7/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-2.7/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-2.7/agg24/src/agg_vpgen_segmentator.o build/temp.linux-x86_64-2.7/CXX/cxx_extensions.o build/temp.linux-x86_64-2.7/CXX/cxxsupport.o build/temp.linux-x86_64-2.7/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-2.7/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/usr/lib64 -lstdc++ -lm -o build/lib.linux-x86_64-2.7/matplotlib/_image.so /usr/bin/ld: /usr/lib/libm.a(s_sin.o): relocation R_X86_64_32S against `__sincostab' can not be used when making a shared object; recompile with -fPIC I don't really understand the problem. Is it possible that the libary is to old or the standard libm.a isn't compiled the right way? I'm trying to build it on a server: Distributor ID:Ubuntu Description:Ubuntu 12.04.2 LTS Release:12.04 Codename:precise Do you know a way how to avoid it and not trying to build a new libm or something similar? Thank you. Best regards, Anton -- 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
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
Re: [Matplotlib-users] import matplotlib.pyplot does not work
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
[Matplotlib-users] Any progress on binary installer for OSX?
Hi, Anything I can do to help get a binary installer for OSX? If I wanted to build one myself - is there a good place to start looking to understand the problems? Cheers, Matthew -- 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