problem with matplotlib

sturlamolden sturlamolden at
Thu Mar 9 20:42:03 CET 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\", line 1, in ?
    from matplotlib.pylab import *
  File "C:\Python24\Lib\site-packages\matplotlib\", line 196,
in ?
    import cm
  File "C:\Python24\Lib\site-packages\matplotlib\", line 5, in ?
    import colors
  File "C:\Python24\Lib\site-packages\matplotlib\", line 33,
in ?
    from numerix import array, arange, take, put, Float, Int, where, \
  File "C:\Python24\Lib\site-packages\matplotlib\numerix\",
line 61, in ?
    from _nc_imports import nx, inf, infinity, Infinity
line 25, in ?
    inf = infty = infinity = Infinity = (array([1])/0.0)[0]
TypeError: unsupported operand type(s) for /: 'numpy.ndarray' and

Sturla Molden

More information about the Python-list mailing list