Alex, Download the current mpl release and try installing that, after completely cleaning out the present installation. (I would also be inclined to delete the numpy and install that also from the latest tarball, and then build and install mpl.) 0.87.3 is pretty old. There was a while when mpl and numpy were evolving together and had to be kept in sync; evidently 0.87.3 was based on an older numpy version, something prior to numpy 1.0.
For anything that you install yourself, I recommend using the --prefix=/usr/local option to "python setup.py install". I like to keep things I install separate from things that come from distro packages. Eric Alexander Dietz wrote: > Hi, > > I want to use matplotlib, version 0.87.3, on my laptop (FC5) running > numpy1.0.1. I had the following settings in my matplotlibrc: > > numerix:numpy > > Then I installed matplotlib using: > > python setup.py build > python setup.py install > > which all seemed to work fine. But then, trying to import pylab, leads > to the following error: > > from pylab import * > File "/usr/lib/python2.4/site-packages/pylab.py", line 1, in ? > from matplotlib.pylab import * > File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 196, > in ? > import cm > File "/usr/lib/python2.4/site-packages/matplotlib/cm.py", line 5, in ? > import colors > File "/usr/lib/python2.4/site-packages/matplotlib/colors.py", line 33, > in ? > from numerix import array, arange, take, put, Float, Int, where, \ > File > "/usr/lib/python2.4/site-packages/matplotlib/numerix/__init__.py", line > 68, in ? > from _sp_imports import nx, infinity > File > "/usr/lib/python2.4/site-packages/matplotlib/numerix/_sp_imports.py", > line 1, in ? > from numpy import Int8, UInt8, \ > ImportError: cannot import name Int8 > > > How to fix this problem? > > Cheers > Alex > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users