SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Christopher F. <fon...@gm...> - 2007年04月26日 17:55:08
On recent builds of matplotlib (svn and 0.90) I encounter an import error when
trying to import pylab:
>>> import pylab
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
/pylab.py",
line 1, in <module>
 from matplotlib.pylab import *
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
/matplotlib/pylab.py",
line 199, in <module>
 import cm
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
/matplotlib/cm.py",
line 5, in <module>
 import colors
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
/matplotlib/colors.py",
line 33, in <module>
 from numerix import array, arange, take, put, Float, Int, putmask, \
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
/matplotlib/numerix/__init__.py",
line 20, in <module>
 from matplotlib import rcParams, verbose
ImportError: cannot import name rcParams
It appears to be a numerix problem. Any idea why this is missing?
From: Christopher F. <fon...@gm...> - 2007年04月26日 18:23:30
Christopher Fonnesbeck <fonnesbeck@...> writes:
> 
> On recent builds of matplotlib (svn and 0.90) I encounter an import error when
> trying to import pylab:
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
> /matplotlib/numerix/__init__.py",
> line 20, in <module>
> from matplotlib import rcParams, verbose
...
> ImportError: cannot import name rcParams
> 
Update: Actually this appears to be related to the bdist_mpkg module that I used
to build the metapackage. Installing from the command line completely fixes the
problem. Not sure how to fix this though.
From: jamesk <jke...@gm...> - 2007年04月30日 20:20:34
What does one have to install from the command line to fix this? I'm getting
the same error running the basemap examples, after installing matplotlib
0.90 via egg and basemap via installer, and numpy via source.
Traceback (most recent call last):
 File "simpletest.py", line 1, in <module>
 from matplotlib.toolkits.basemap import Basemap
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/toolkits/basemap/__init__.py",
line 1, in <module>
 from basemap import __doc__, __version__
 File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/toolkits/basemap/basemap.py",
line 1, in <module>
 from matplotlib import rcParams
ImportError: cannot import name rcParams
Chris Fonnesbeck wrote:
> 
> Christopher Fonnesbeck <fonnesbeck@...> writes:
> 
>> 
>> On recent builds of matplotlib (svn and 0.90) I encounter an import error
>> when
>> trying to import pylab:
>> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
>> /matplotlib/numerix/__init__.py",
>> line 20, in <module>
>> from matplotlib import rcParams, verbose
> ...
>> ImportError: cannot import name rcParams
>> 
> 
> Update: Actually this appears to be related to the bdist_mpkg module that
> I used
> to build the metapackage. Installing from the command line completely
> fixes the
> problem. Not sure how to fix this though.
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
-- 
View this message in context: http://www.nabble.com/rcParams-is-missing-tf3653185.html#a10242129
Sent from the matplotlib - users mailing list archive at Nabble.com.
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 によって変換されたページ (->オリジナル) /