>>>>> "Fabian" == Fabian Braennstroem <[EMAIL PROTECTED]> writes:
>> 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" >> it seems, that matplotlib tries to use the old installed pygtk >> version; the new one is located in /usr/local/include/... Yes, this is the old pygtk bug covered in this FAQ http://matplotlib.sourceforge.net/faq.html#PYGTK24 maptlotlib gets its gtk configuration from the pkg-config commands, eg > pkg-config --cflags-only-I gtk+-2.0 make sure your pkg-config is picking up the new pygtk you have installed, and if not set the PKG_CONFIG_PATH environment variable. See 'man pkg-config' for more details. Fabian> from matplotlib.pylab import * File Fabian> "/opt/python-2.5//lib/python2.5/site-packages/matplotlib/pylab.py", Fabian> line 199, in <module> import mlab #so I can override hist, Fabian> psd, etc... File Fabian> "/opt/python-2.5//lib/python2.5/site-packages/matplotlib/mlab.py", Fabian> line 6 4, in <module> import nxutils File Fabian> "/opt/python-2.5//lib/python2.5/site-packages/matplotlib/nxutils.py", Fabian> lin e 17, in <module> from matplotlib._ns_nxutils import * Fabian> ImportError: No module named _ns_nxutils >>>> import numpy It appears you did not have numpy installed when you built matplotlib. Grab numpy-1.0 from http://numpy.scipy.org and install it (it's an easy install compared to mpl). Then rebuild and reinstall matplotlib and you should be good to go. JDH ------------------------------------------------------------------------- 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