SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Alexander D. <Ale...@as...> - 2007年07月31日 20:55:00
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
From: Eric F. <ef...@ha...> - 2007年07月31日 21:59:58
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
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /