Apologies for the double-post.
An update: installing scipy, then rebuilding and reinstalling
matplotlib get things working using Numeric; numarray still fails. That
fragility makes me worry something is still wrong, but I just got a
basic test plot (1,2,3) to display using ipython, and that's good enough
for me for now. Advice would still be welcome, but is no longer as
desperate. =)
Also, I should have mentioned that the machine in question is Ubuntu
5.10 PPC. Tomorrow I'll see if I can get matplotlib successfully
installed on the MacOS X side...
Hoping this message helps someone else down the line (and that the list
will forgive me asking and then answering my own question...),
Andrew Stout
Andrew Stout wrote:
> 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@...$ 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@...$ 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
>
|