From: <J.B...@if...> - 2005-12-05 12:44:52
|
Hi, I' ve just started with matplotlib for the first time. After installation I get the following error: >>>from pylab import * ... /usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py 4 def fn_name(): return sys._getframe(1).f_code.co_name 5 ----> 6 import gobject 7 import gtk; gdk = gtk.gdk 8 import pango ImportError: No module named gobject If someone has seen this befor, please tell me how to solve the problem... cheers Jens |
From: Kenny O. <ya...@em...> - 2006-09-01 21:19:27
|
hey guys i got the subversion from the site and I am trying to install it on windows. I changed dir into the matplotlib dir that includes the setup.py file. run python setup.py install, and im getting a wierd error. i left the topmost lines along with the error. has anyone seen anything like this before? building 'matplotlib.enthought.traits.ctraits' extension creating build\temp.win32-2.4\Release\lib creating build\temp.win32-2.4\Release\lib\matplotlib creating build\temp.win32-2.4\Release\lib\matplotlib\enthought creating build\temp.win32-2.4\Release\lib\matplotlib\enthought\traits C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Ic:\Python24\include -Ic:\Python24\PC /Tclib/matplotlib/e nthought/traits/ctraits.c /Fobuild\temp.win32-2.4\Release\lib/matplotlib/enthoug ht/traits/ctraits.obj C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\Python24\libs /LIBPATH:c:\Python24\PCBuild /EXPORT: initctraits build\temp.win32-2.4\Release\lib/matplotlib/enthought/traits/ctraits .obj /OUT:build\lib.win32-2.4\matplotlib\enthought\traits\ctraits.pyd /IMPLIB:bu ild\temp.win32-2.4\Release\lib/matplotlib/enthought/traits\ctraits.lib building 'matplotlib.backends._tkagg' extension C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iagg23/incl ude -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2 -Ic:\Pyt hon24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp.win32-2.4\Release \src/_tkagg.obj _tkagg.cpp src\_tkagg.cpp(28) : fatal error C1083: Cannot open include file: 'tk.h': No suc h file or directory error: Command ""C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.e xe" /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc - Iswig -Iagg23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetyp e2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\ freetype2 -Ic:\Python24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp .win32-2.4\Release\src/_tkagg.obj" failed with exit status 2 |
From: Darren D. <dd...@co...> - 2006-09-02 12:51:58
|
On Friday 01 September 2006 5:19 pm, Kenny Ortmann wrote: > hey guys i got the subversion from the site and I am trying to install it > on windows. It is strongly discouraged to try to build matplotlib from source on windows. Setting up your windows environment to build the source is difficult and time consuming. Please use the windows installers at the download site instead. Darren |
From: John H. <jdh...@ac...> - 2006-09-04 16:28:27
|
>>>>> "Darren" == Darren Dale <dd...@co...> writes: Darren> It is strongly discouraged to try to build matplotlib from Darren> source on windows. Setting up your windows environment to Darren> build the source is difficult and time consuming. Please Darren> use the windows installers at the download site instead. I wouldn't go as far to say it is strongly discouraged; merely that it is not for the faint of heart. For enterprising souls who know there way around a compiler, I would encourage it, since we would have more hands to help with building and testing svn on windows. As for the specific error messages, it looks like you do not have the tk development headers installed or for some reason your build is not finding them. Please see the header for win32 in setupext.py and references to the READMEs therein if you want to pursue this. JDH |
From: Darren D. <dd...@co...> - 2006-09-04 18:53:01
|
On Monday 04 September 2006 12:15 pm, John Hunter wrote: > >>>>> "Darren" == Darren Dale <dd...@co...> writes: > > Darren> It is strongly discouraged to try to build matplotlib from > Darren> source on windows. Setting up your windows environment to > Darren> build the source is difficult and time consuming. Please > Darren> use the windows installers at the download site instead. > > I wouldn't go as far to say it is strongly discouraged; merely that it > is not for the faint of heart. For enterprising souls who know there > way around a compiler, I would encourage it, since we would have more > hands to help with building and testing svn on windows. As for the > specific error messages, it looks like you do not have the tk > development headers installed or for some reason your build is not > finding them. Please see the header for win32 in setupext.py and > references to the READMEs therein if you want to pursue this. My mistake. Not for the faint of heart is a much better way of putting it. |
From: Kenny O. <ya...@em...> - 2006-09-05 18:02:21
|
Hey Charlie thanks for the info. I went ahead and installed Active Tcl I removed microsft visual studio 2003 .net from my computer because I never used it, and I did not want it on here in the first place but i had it on here from being an intern over the summer. C:\matplotlib\trunk\matplotlib>c:\Python24\python.exe setup.py install GTK requires pygtk building tkagg 2 4 Building for python24 GTKAgg requires pygtk running install running build running build_py running build_ext No module named msvccompiler in numpy.distutils, trying from distutils.. building 'matplotlib.backends._tkagg' extension C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iagg23/incl ude -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2 -Ic:\Pyt hon24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp.win32-2.4\Release \src/_tkagg.obj _tkagg.cpp src\_tkagg.cpp(28) : fatal error C1083: Cannot open include file: 'tk.h': No suc h file or directory error: Command ""C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.e xe" /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc - Iswig -Iagg23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetyp e2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\ freetype2 -Ic:\Python24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp .win32-2.4\Release\src/_tkagg.obj" failed with exit status 2 This is the error i got after my first try at python setup.py install after it did not work is when i uninstalled .net 2003. and i recieve this error currently. C:\matplotlib\trunk\matplotlib>c:\Python24\python.exe setup.py install GTK requires pygtk building tkagg 2 4 Building for python24 GTKAgg requires pygtk running install running build running build_py running build_ext No module named msvccompiler in numpy.distutils, trying from distutils.. error: The .NET Framework SDK needs to be installed before building extensions f or Python. Has anyone seen this one? I would not be so persistent as to trying to install the current SVN except that I need one of the algorithms in numpy version 1.0b2 and above. I am also going to post this on the numpy mailing list because it says the error is in numpy.distutils. > > You need to install the tcl/tk headers as Darren mentioned. I just > install ActiveTcl and the build should pick up on it no problem. > |
From: Charlie M. <cw...@gm...> - 2006-09-04 22:15:21
|
On 9/1/06, Kenny Ortmann <ya...@em...> wrote: > hey guys i got the subversion from the site and I am trying to install it > on windows. > > I changed dir into the matplotlib dir that includes the setup.py file. > > run python setup.py install, and im getting a wierd error. i left the > topmost lines along with the error. has anyone seen anything like this > before? > > building 'matplotlib.enthought.traits.ctraits' extension > creating build\temp.win32-2.4\Release\lib > creating build\temp.win32-2.4\Release\lib\matplotlib > creating build\temp.win32-2.4\Release\lib\matplotlib\enthought > creating build\temp.win32-2.4\Release\lib\matplotlib\enthought\traits > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c > /nologo /Ox > /MD /W3 /GX /DNDEBUG -Ic:\Python24\include -Ic:\Python24\PC > /Tclib/matplotlib/e > nthought/traits/ctraits.c > /Fobuild\temp.win32-2.4\Release\lib/matplotlib/enthoug > ht/traits/ctraits.obj > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL > /nologo > /INCREMENTAL:NO /LIBPATH:c:\Python24\libs /LIBPATH:c:\Python24\PCBuild > /EXPORT: > initctraits > build\temp.win32-2.4\Release\lib/matplotlib/enthought/traits/ctraits > .obj /OUT:build\lib.win32-2.4\matplotlib\enthought\traits\ctraits.pyd > /IMPLIB:bu > ild\temp.win32-2.4\Release\lib/matplotlib/enthought/traits\ctraits.lib > building 'matplotlib.backends._tkagg' extension > C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c > /nologo /Ox > /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc -Iswig > -Iagg23/incl > ude -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 > -Isrc\freetype2 > -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2 > -Ic:\Pyt > hon24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp > /Fobuild\temp.win32-2.4\Release > \src/_tkagg.obj > _tkagg.cpp > src\_tkagg.cpp(28) : fatal error C1083: Cannot open include file: 'tk.h': > No suc > h file or directory > error: Command ""C:\Program Files\Microsoft Visual Studio .NET > 2003\Vc7\bin\cl.e > xe" /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. > -Isrc - > Iswig -Iagg23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 > -I.\freetyp > e2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 > -I.\freetype2 -I.\ > freetype2 -Ic:\Python24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp > /Fobuild\temp > .win32-2.4\Release\src/_tkagg.obj" failed with exit status 2 You need to install the tcl/tk headers as Darren mentioned. I just install ActiveTcl and the build should pick up on it no problem. |
From: Charlie M. <cw...@gm...> - 2006-09-05 19:45:34
|
VS2003.Net is needed to easily build the python 2.4 version. (e.g. python setup.py build) You can also follow the mingw instructions for a more open-source way of building matplotlib for windows. We still have to do this for python 2.3. You can supposedly download the .net compiler tools for free, but I haven't tried. I am pasting my previous post since I didn't re-all. > > In order to build mpl with visual studio it requires VS.Net 2003. > > Python 2.5 will be a little more "open" since it requires VS2005 and > > there is a free edition of VS2005 called "Express Edition". Python > > 2.3 required the version of VS before .Net. - Charlie On 9/5/06, Kenny Ortmann <ya...@em...> wrote: > Do i need to reinstall vs2003.net? I do not have access to that product > anylonger. I tried to obtain the latest SVN and i still recieved the same > error. Is there a certain way you are supposed to compile mpl on windows if > you dont use the .exe? for instance do i have to build it first? or > anything like that > > > ----- Original Message ----- > From: "Charlie Moad" <cw...@gm...> > To: "Kenny Ortmann" <ya...@em...> > Sent: Tuesday, September 05, 2006 1:21 PM > Subject: Re: [Matplotlib-users] installation > > > > On 9/5/06, Kenny Ortmann <ya...@em...> wrote: > >> Hey Charlie thanks for the info. > >> > >> I went ahead and installed Active Tcl > >> I removed microsft visual studio 2003 .net from my computer because I > >> never > >> used it, and I did not want it on here in the first place but i had it on > >> here from being an intern over the summer. > > > > You can use the new mpl release from today. > > > > In order to build mpl with visual studio it requires VS.Net 2003. > > Python 2.5 will be a little more "open" since it requires VS2005 and > > there is a free edition of VS2005 called "Express Edition". Python > > 2.3 required the version of VS before .Net. > > > > |
From: Charlie M. <cw...@gm...> - 2006-09-05 20:57:56
|
Refer to the top of the setupext.py file. On 9/5/06, Kenny Ortmann <ya...@em...> wrote: > Where can I find these mingw instructions? Sorry for asking such a simple > question but I can not seem to find them, ive googled it looked in the > readme file and cant find them :/. > > ----- Original Message ----- > From: "Charlie Moad" <cw...@gm...> > To: "Kenny Ortmann" <ya...@em...> > Cc: "matplotlib-users" <mat...@li...> > Sent: Tuesday, September 05, 2006 2:45 PM > Subject: Re: [Matplotlib-users] installation > > > > VS2003.Net is needed to easily build the python 2.4 version. (e.g. > > python setup.py build) You can also follow the mingw instructions for > > a more open-source way of building matplotlib for windows. We still > > have to do this for python 2.3. You can supposedly download the .net > > compiler tools for free, but I haven't tried. I am pasting my > > previous post since I didn't re-all. > > > >> > In order to build mpl with visual studio it requires VS.Net 2003. > >> > Python 2.5 will be a little more "open" since it requires VS2005 and > >> > there is a free edition of VS2005 called "Express Edition". Python > >> > 2.3 required the version of VS before .Net. > > > > - Charlie > > > > On 9/5/06, Kenny Ortmann <ya...@em...> wrote: > >> Do i need to reinstall vs2003.net? I do not have access to that product > >> anylonger. I tried to obtain the latest SVN and i still recieved the > >> same > >> error. Is there a certain way you are supposed to compile mpl on windows > >> if > >> you dont use the .exe? for instance do i have to build it first? or > >> anything like that > >> > >> > >> ----- Original Message ----- > >> From: "Charlie Moad" <cw...@gm...> > >> To: "Kenny Ortmann" <ya...@em...> > >> Sent: Tuesday, September 05, 2006 1:21 PM > >> Subject: Re: [Matplotlib-users] installation > >> > >> > >> > On 9/5/06, Kenny Ortmann <ya...@em...> wrote: > >> >> Hey Charlie thanks for the info. > >> >> > >> >> I went ahead and installed Active Tcl > >> >> I removed microsft visual studio 2003 .net from my computer because I > >> >> never > >> >> used it, and I did not want it on here in the first place but i had it > >> >> on > >> >> here from being an intern over the summer. > >> > > >> > You can use the new mpl release from today. > >> > > >> > In order to build mpl with visual studio it requires VS.Net 2003. > >> > Python 2.5 will be a little more "open" since it requires VS2005 and > >> > there is a free edition of VS2005 called "Express Edition". Python > >> > 2.3 required the version of VS before .Net. > >> > > >> > >> > > > > |
From: Robert F. <rob...@ir...> - 2008-09-19 01:29:34
|
Hi, I would really like to use matplot lib, however I am having big problems as I try to do this on OSX 10.5. if there is someone how could give a detailed explination of how to get rid of the preinstalled python that is apparently rubbish and then how to install a new python version that would really help me. I am completely lost in a world of eggs etc. Bryn P.S. here is my particular compilation problem. Is there a simple solution so that I can code my first graph today? salvatella02:Downloads rbf$ sudo easy_install matplotlib-0.98.3-py2.5-macosx-10.3.egg Password: Processing matplotlib-0.98.3-py2.5-macosx-10.3.egg removing '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3.egg' (and everything under it) creating /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3.egg Extracting matplotlib-0.98.3-py2.5-macosx-10.3.egg to /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages Adding matplotlib 0.98.3 to easy-install.pth file Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3.egg Processing dependencies for matplotlib==0.98.3 Searching for matplotlib==0.98.3 Reading http://pypi.python.org/simple/matplotlib/ Reading http://matplotlib.sourceforge.net Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 Reading https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 Reading http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 Reading http://sourceforge.net/project/showfiles.php?group_id=80706 Best match: matplotlib 0.98.3 Downloading http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.3.tar.gz?modtime=1217773039&big_mirror=0 Processing matplotlib-0.98.3.tar.gz Running matplotlib-0.98.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JGl_1Z/matplotlib-0.98.3/egg-dist-tmp-T6PVvy ============================================================================ BUILDING MATPLOTLIB matplotlib: 0.98.3 python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.1.1 freetype2: found, but unknown version (no pkg-config) OPTIONAL BACKEND DEPENDENCIES libpng: found, but unknown version (no pkg-config) Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to "import gtk" in your build/install environment Qt: no Qt4: no Cairo: no OPTIONAL DATE/TIMEZONE DEPENDENCIES datetime: present, version unknown dateutil: matplotlib will provide pytz: matplotlib will provide OPTIONAL USETEX DEPENDENCIES dvipng: 1.9 ghostscript: 8.57 latex: 3.141592 EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES configobj: matplotlib will provide enthought.traits: no [Edit setup.cfg to suppress the above messages] ============================================================================ warning: no files found matching 'NUMARRAY_ISSUES' warning: no files found matching 'MANIFEST' warning: no files found matching 'matplotlibrc' warning: no files found matching 'makeswig.py' warning: no files found matching 'examples/data/*' warning: no files found matching 'lib/mpl_toolkits' warning: no files found matching '*' under directory 'examples' warning: no files found matching '*' under directory 'swig' gcc: unrecognized option '-no-cpp-precomp' cc1plus: error: unrecognized command line option "-arch" cc1plus: error: unrecognized command line option "-arch" cc1plus: warning: unrecognized command line option "-Wno-long-double" error: Setup script exited with error: command 'gcc' failed with exit status 1 Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1bb48a0>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/path.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1bb4080>> ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of <setupext.CleanUpFile instance at 0x1bb43c8>> ignored |
From: charles r. <cha...@gm...> - 2008-09-23 17:32:26
|
I don't think my message made it to the mailing list... See below. Charles ========== The 2nd Law of Thermodynamics... If you think things are a mess now, JUST WAIT! ---------- Forwarded message ---------- From: charles reid <cha...@gm...> Date: Fri, Sep 19, 2008 at 5:46 PM Subject: Re: [Matplotlib-users] installation To: Robert Fenwick <rob...@ir...> Cc: mat...@li... The pre-installed version of python is NOT rubbish, it's used by the system to do various tasks. If you delete it, it will likely mess things up. I highly recommend you leave it alone. I would recommend you do a simple web search, since there are a whole slew of guides to doing this. Try this one: http://www.mtheory.co.uk/support/index.php?title=Installing_Python_-_iPython%2C_Numpy%2C_Scipy_and_Matplotlib_on_OS_X There is a list of links at the bottom with at least 5 more guides to installing "python for science" on Mac OS X 10.5 ("python for science" being the suite of iPython, SciPy, NumPy, and matplotlib). Also try this handy "SciPy Superpack" script: http://macinscience.org/?page_id=6 It atuomatically downloads & installs the python for science programs from the svn source (so you don't have to worry about updating, you just re-run the script). Good luck. Charles ========== The 2nd Law of Thermodynamics... If you think things are a mess now, JUST WAIT! On Fri, Sep 19, 2008 at 2:29 AM, Robert Fenwick < rob...@ir...> wrote: > Hi, > > I would really like to use matplot lib, however I am having big > problems as I try to do this on OSX 10.5. if there is someone how > could give a detailed explination of how to get rid of the > preinstalled python that is apparently rubbish and then how to install > a new python version that would really help me. I am completely lost > in a world of eggs etc. > > Bryn > > P.S. here is my particular compilation problem. Is there a simple > solution so that I can code my first graph today? > > salvatella02:Downloads rbf$ sudo easy_install > matplotlib-0.98.3-py2.5-macosx-10.3.egg > Password: > Processing matplotlib-0.98.3-py2.5-macosx-10.3.egg > removing > '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3.egg' > (and everything under it) > creating > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3.egg > Extracting matplotlib-0.98.3-py2.5-macosx-10.3.egg to > > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages > Adding matplotlib 0.98.3 to easy-install.pth file > > Installed > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib-0.98.3-py2.5-macosx-10.3.egg > Processing dependencies for matplotlib==0.98.3 > Searching for matplotlib==0.98.3 > Reading http://pypi.python.org/simple/matplotlib/ > Reading http://matplotlib.sourceforge.net > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=278194 > Reading > https://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 > Reading > http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474 > Reading http://sourceforge.net/project/showfiles.php?group_id=80706 > Best match: matplotlib 0.98.3 > Downloading > http://downloads.sourceforge.net/matplotlib/matplotlib-0.98.3.tar.gz?modtime=1217773039&big_mirror=0 > Processing matplotlib-0.98.3.tar.gz > Running matplotlib-0.98.3/setup.py -q bdist_egg --dist-dir > /tmp/easy_install-JGl_1Z/matplotlib-0.98.3/egg-dist-tmp-T6PVvy > > ============================================================================ > BUILDING MATPLOTLIB > matplotlib: 0.98.3 > python: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC > 4.0.1 (Apple Computer, Inc. build 5363)] > platform: darwin > > REQUIRED DEPENDENCIES > numpy: 1.1.1 > freetype2: found, but unknown version (no pkg-config) > > OPTIONAL BACKEND DEPENDENCIES > libpng: found, but unknown version (no pkg-config) > Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4 > wxPython: no > * wxPython not found > Gtk+: no > * Building for Gtk+ requires pygtk; you must be able > * to "import gtk" in your build/install environment > Qt: no > Qt4: no > Cairo: no > > OPTIONAL DATE/TIMEZONE DEPENDENCIES > datetime: present, version unknown > dateutil: matplotlib will provide > pytz: matplotlib will provide > > OPTIONAL USETEX DEPENDENCIES > dvipng: 1.9 > ghostscript: 8.57 > latex: 3.141592 > > EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES > configobj: matplotlib will provide > enthought.traits: no > > [Edit setup.cfg to suppress the above messages] > > ============================================================================ > warning: no files found matching 'NUMARRAY_ISSUES' > warning: no files found matching 'MANIFEST' > warning: no files found matching 'matplotlibrc' > warning: no files found matching 'makeswig.py' > warning: no files found matching 'examples/data/*' > warning: no files found matching 'lib/mpl_toolkits' > warning: no files found matching '*' under directory 'examples' > warning: no files found matching '*' under directory 'swig' > gcc: unrecognized option '-no-cpp-precomp' > cc1plus: error: unrecognized command line option "-arch" > cc1plus: error: unrecognized command line option "-arch" > cc1plus: warning: unrecognized command line option "-Wno-long-double" > error: Setup script exited with error: command 'gcc' failed with exit > status 1 > Exception exceptions.OSError: (2, 'No such file or directory', > 'src/image.cpp') in <bound method CleanUpFile.__del__ of > <setupext.CleanUpFile instance at 0x1bb48a0>> ignored > Exception exceptions.OSError: (2, 'No such file or directory', > 'src/path.cpp') in <bound method CleanUpFile.__del__ of > <setupext.CleanUpFile instance at 0x1bb4080>> ignored > Exception exceptions.OSError: (2, 'No such file or directory', > 'src/backend_agg.cpp') in <bound method CleanUpFile.__del__ of > <setupext.CleanUpFile instance at 0x1bb43c8>> ignored > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |
From: Peter G. <pgr...@ge...> - 2005-12-10 00:24:38
|
>/usr/local/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py > 4 def fn_name(): return sys._getframe(1).f_code.co_name > 5 >----> 6 import gobject > 7 import gtk; gdk = gtk.gdk > 8 import pango > >ImportError: No module named gobject > > >If someone has seen this befor, please tell me how to solve the problem... > > > looks like for me the gobject module is here: /usr/lib/python2.3/site-packages/gtk-2.0/gobject.so so probably you don't have the python gtk-2.0 bindings installed... you don't mention which distro you use.. but say if it's debian based (or fedora/redhat with apt-get installed), do: $> apt-cache search pygtk then $> apt-get install <pygtk2 package> ... might need pygtk2-devel as well, if you're building matplotlib... can't remember. cheers, peter -- Peter Groszkowski Gemini Observatory Tel: +1 808 9742509 670 N. A'ohoku Place Fax: +1 808 9359235 Hilo, Hawai'i 96720, USA |