[SciPy-dev] NameError: global name 'nx' is not defined

Arnd Baecker arnd.baecker at web.de
Sun Oct 30 02:03:38 CST 2005



On Sun, 30 Oct 2005, Nils Wagner wrote:

> ======================================================================
> ERROR: check_assoc_laguerre
> (scipy.special.basic.test_basic.test_assoc_laguerre)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File
> "/usr/local/lib/python2.4/site-packages/scipy/special/tests/test_basic.py",
> line 527, in check_assoc_laguerre
>      a1 = genlaguerre(11,1)
>    File
> "/usr/local/lib/python2.4/site-packages/scipy/special/orthogonal.py",
> line 273, in genlaguerre
>      p = orthopoly1d(x,w,hn,kn,wfunc,(0,inf),monic)
>    File
> "/usr/local/lib/python2.4/site-packages/scipy/special/orthogonal.py",
> line 73, in __init__
>      poly1d.__init__(self, roots, r=1)
>    File
> "/usr/local/lib/python2.4/site-packages/scipy/base/polynomial.py",
> line 372, in __init__
>      c_or_r = poly(c_or_r)
>    File
> "/usr/local/lib/python2.4/site-packages/scipy/base/polynomial.py",
> line 70, in poly
>      if isinstance(a.dtype, nx.complexfloating):
> NameError: global name 'nx' is not defined

Here the fix is easy: just replace all "nx." by "NX."

Arnd




More information about the Scipy-dev mailing list