problem with matplotlib

sturlamolden sturlamolden at yahoo.no
Thu Mar 9 14:42:03 EST 2006


Recently, I have been trying to test Python as an alternative to
Matlab. I have problems getting matplotlib to work on Windows
(ActivePython 2.4.2). After installing the precompiled binary packages
for NumPy 0.9.5 and Matplotlib 0.87.1, I get this error message:

>>> import pylab as p
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in ?
    import pylab as p
  File "C:\Python24\Lib\site-packages\pylab.py", line 1, in ?
    from matplotlib.pylab import *
  File "C:\Python24\Lib\site-packages\matplotlib\pylab.py", line 196,
in ?
    import cm
  File "C:\Python24\Lib\site-packages\matplotlib\cm.py", line 5, in ?
    import colors
  File "C:\Python24\Lib\site-packages\matplotlib\colors.py", line 33,
in ?
    from numerix import array, arange, take, put, Float, Int, where, \
  File "C:\Python24\Lib\site-packages\matplotlib\numerix\__init__.py",
line 61, in ?
    from _nc_imports import nx, inf, infinity, Infinity
  File
"C:\Python24\Lib\site-packages\matplotlib\numerix\_nc_imports.py",
line 25, in ?
    inf = infty = infinity = Infinity = (array([1])/0.0)[0]
TypeError: unsupported operand type(s) for /: 'numpy.ndarray' and
'float'
>>>



Sturla Molden




More information about the Python-list mailing list