From: Andrew S. <st...@cs...> - 2005-12-22 04:35:17
|
Hi-- I'm trying to get matplotlib installed on my laptop before my holiday travels begin. I've acquired all the dependencies through synaptic and built matplotlib from source, but when I attempt to import pylab I get the following error: andrew@idioteque:~/.matplotlib$ python Python 2.4.2 (#2, Sep 30 2005, 22:23:39) [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "lines.data_clipping" on line 55 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.major.size" on line 145 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.minor.size" on line 146 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.major.pad" on line 147 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.minor.pad" on line 148 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.color" on line 149 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.labelsize" on line 150 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) Traceback (most recent call last): File "<stdin>", line 1, in ? 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 194, 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 62, in ? from Matrix import Matrix ImportError: No module named Matrix >>> This happens with Numeric specified in my matplotlibrc. If I specify numarray, I get a different import error: andrew@idioteque:~/.matplotlib$ python Python 2.4.2 (#2, Sep 30 2005, 22:23:39) [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pylab /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "lines.data_clipping" on line 55 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.major.size" on line 145 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.minor.size" on line 146 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.major.pad" on line 147 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.minor.pad" on line 148 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.color" on line 149 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) /usr/lib/python2.4/site-packages/matplotlib/__init__.py:843: UserWarning: Bad key "tick.labelsize" on line 150 in /home/andrew/.matplotlib/matplotlibrc warnings.warn('Bad key "%s" on line %d in %s' % (key, cnt, fname)) Traceback (most recent call last): File "<stdin>", line 1, in ? 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 194, 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 53, in ? from numarray.convolve import cross_correlate, convolve ImportError: No module named convolve >>> So, I suspect something is wrong in Numerix, but I have no idea what, or more importantly how to fix it. Could anyone help? It would be much appreciated. Please cc me; I am not subscrived to the list. Thanks in advance, Andrew Stout |