|
From: Gary <pa...@in...> - 2004-12-17 14:07:30
|
John Hunter wrote:
>[...]
>
>So removing "min" from the numerix import in axes.py should fix your
>problem, but\ I'm surprised that you are unable to import min from the
>numerix module. So before you fix it could you run a test script with
>
> > python myscript.py --verbose-helpful
>
>and report the output, particularly the numerix version information.
>
>
---------------------------------------------------------------------
C:\Python23\Lib\site-packages\matplotlib\examples>python simple_plot.py
--verbose-helpful
matplotlib data path C:\Python23\share\matplotlib
loaded rc file C:\Python23\share\matplotlib\.matplotlibrc
matplotlib version 0.65
verbose.level helpful
interactive is False
platform is win32
numerix Numeric 23.0
Traceback (most recent call last):
File "simple_plot.py", line 3, in ?
from pylab import *
File "C:\Python23\Lib\site-packages\pylab.py", line 1, in ?
from matplotlib.pylab import *
File "C:\Python23\Lib\site-packages\matplotlib\pylab.py", line 184, in ?
from axes import Axes, PolarAxes
File "C:\Python23\Lib\site-packages\matplotlib\axes.py", line 6, in ?
from numerix import MLab, absolute, arange, array, asarray, ones,
transpose,
\
ImportError: cannot import name min
-----------------------------------------------------------------------------------
>Perhaps Todd or I can then offer some insight into why the MLab.min
>function is not in the numerix namespace. I can do
>
> >>> from matplotlib.numerix import min
>
>
>
correct:
---------------------------------------------------------------------
C:\Python23\Lib\site-packages\matplotlib\examples>python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from matplotlib.numerix import min
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: cannot import name min
----------------------------------------------------------------
>with both Numeric and numarrary (latest release or CVS of both). My
>guess is that you cannot, and I'd like to know why.
>
>You appear cursed in your ability to get a working matplotlib win32
>upgrade! Maybe next time....
>
>
Off topic comment: I have a number or little annoyances with various
packages. Enough that I decided that I would try migrating to Linux.
My Thinkpad has only a modest HD, so I didn't want to partition it. I
could buy a bigger drive. But my Thinkpad can boot from an external USB
device, so I started wondering if I could set up a Linux entirely on the
external drive, and not touch my internal drive. If it worked, I'd have
a portable Linux (portable, at least, to any machine that can boot from
USB).
I searched the web, and found mixed reviews concening the viability of
this idea.
So I bought a USB enclosure ($10 on eBay) and a 20 GB drive ($33 on
eBay, but read on) and went to town. After about three months of
back-burner late-night tinkering, I got it working! A week later, my
external HD crashed. I'm waiting for some extra time to appear before
trying again.
If anyone is interested, I can provide some pointers. (once I'm
finished, I'll post my experinces on a web site somewhere) Two initial
comments: 1.) be very careful about buying a "Travelstar" HD on eBay.
Apparantly manufacturing problems resulted in a large number of faulty
units getting into circulation. 2.) I was *not* successful using
Mandrake or Mepis. I was successful using Fedora FC2.
|