views:

41

answers:

1

When I use my system, there is no error in my python codes. When I use another system I get this error:(both systems have same version of python)

/usr/lib/pymodules/python2.6/matplotlib/numerix/__init__.py:18: DeprecationWarning: 
**********************************************************
matplotlib.numerix and all its subpackages are deprecated.
They will be removed soon.  Please use numpy instead.
**********************************************************

  warnings.warn(msg, DeprecationWarning)
/usr/lib/pymodules/python2.6/networkx/generators/hybrid.py:16: DeprecationWarning: the sets module is deprecated
  import sets
Traceback (most recent call last):
  File "./check_2.py", line 79, in <module>
    G.add_edge(u,v,times=[t])
TypeError: add_edge() got an unexpected keyword argument 'times'
+3  A: 

There's a hint.

matplotlib.numerix and all its subpackages are deprecated.
They will be removed soon.  Please use numpy instead.

The system that gets this error has old packages installed.

While the "version of python" may be the same, the set of installed packages is different.

S.Lott
how can I use numpy as the hint suggests?
masti
Instead of using functions from `matplotlib.numerix`, use functions from `numpy`. You'll have to look up the documentation.
katrielalex