Hi, me again :-)
* Fabian Braennstroem <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to install matplotlib 0.87.7 with my newly > separate installed python 2.5. For this I installed 'pygtk > 2.4.1' and numpy 1.0 using this python 2.5 installation. > Now, running 'python2.5 setup.py build' I get this error: > > ... > /usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' before > "typename" > /usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' before > "typename" > ./CXX/Extensions.hxx: In constructor > `Py::PythonExtension<T>::PythonExtension() [with T = BufferRegion]': > src/_backend_agg.h:50: instantiated from here > ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect > ./CXX/Extensions.hxx: In constructor > `Py::PythonExtension<T>::PythonExtension() [with T = LazyValue]': > src/_transforms.h:57: instantiated from here > ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect > ./CXX/Extensions.hxx: In constructor > `Py::PythonExtension<T>::PythonExtension() [with T = Func]': > src/_transforms.h:379: instantiated from here > ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect > ./CXX/Extensions.hxx: In constructor > `Py::PythonExtension<T>::PythonExtension() [with T = FuncXY]': > src/_transforms.h:466: instantiated from here > ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect > ./CXX/Extensions.hxx: In constructor > `Py::PythonExtension<T>::PythonExtension() [with T = Transformation]': > src/_transforms.h:538: instantiated from here > ./CXX/Extensions.hxx:477: warning: right-hand operand of comma has no effect > error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall > -Wstrict-prototypes -fPIC -I/usr/local/include -I/usr/include -I. -Isrc > -Iswig -Iagg23/include -I. -I/usr/local/include -I/usr/include -I. > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 > -Isrc/freetype2 -Iswig/freetype2 -Iagg23/include/freetype2 -I./freetype2 > -I/usr/local/include/freetype2 -I/usr/include/freetype2 -I./freetype2 > -I/usr/local/include -I/usr/include -I. -I/usr/include/pygtk-2.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 > -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 > -I/usr/include/pango-1.0 -I/usr/include/freetype2 > -I/usr/include/freetype2/config -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -I/opt/python-2.5/include/python2.5 -c > src/_gtkagg.cpp -o build/temp.linux-i686-2.5/src/_gtkagg.o" failed with exit > status 1 > > it seems, that matplotlib tries to use the old installed pygtk version; the > new > one is located in /usr/local/include/... I could fix this problem with setting: BUILD_AGG = 0 BUILD_GTKAGG = 0 BUILD_GTK = 1 but now, I get the following problem: node1~$ python2.5 [05 Dec 7:45am] Python 2.5 (r25:51908, Dec 2 2006, 19:02:24) [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab The import of the numpy version of the nxutils module, _nsnxutils, failed. This is is either because numpy was unavailable when matplotlib was compiled, because a dependency of _nsnxutils could not be satisfied, or because the build flag for this module was turned off in setup.py. If it appears that _nsnxutils was not built, make sure you have a working copy of numpy and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/python-2.5//lib/python2.5/site-packages/pylab.py", line 1, in <modu le> from matplotlib.pylab import * File "/opt/python-2.5//lib/python2.5/site-packages/matplotlib/pylab.py", line 199, in <module> import mlab #so I can override hist, psd, etc... File "/opt/python-2.5//lib/python2.5/site-packages/matplotlib/mlab.py", line 6 4, in <module> import nxutils File "/opt/python-2.5//lib/python2.5/site-packages/matplotlib/nxutils.py", lin e 17, in <module> from matplotlib._ns_nxutils import * ImportError: No module named _ns_nxutils >>> import numpy >>> I checked the setup script; it says: # these are not optional BUILD_FT2FONT = 1 BUILD_CONTOUR = 1 BUILD_NXUTILS = 1 so _nxutils should be installed and numpy loads without any problems!? Does anybody have an idea? Greetings! Fabian ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users