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

Nils Wagner nwagner at iam.uni-stuttgart.de
Mon Aug 25 13:06:13 EDT 2008


On Mon, 25 Aug 2008 10:51:59 -0600
  Damian Eads <eads at soe.ucsc.edu> wrote:
> Hi,
> 
> This is due to a typo and I just fixed it. Do a SVN 
>update.
> 
> Damian
> 
> Nils Wagner wrote:
>> Damian,
>> 
>> you have introduced a new error.
>> 
>> ======================================================================
>> ERROR: Tests pdist(X, 'canberra') to see if Canberra 
>>gives 
>> the right result as reported in Scipy bug report 711.
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>    File 
>> "/usr/local/lib64/python2.5/site-packages/scipy/cluster/tests/test_distance.py", 
>> line 961, in test_pdist_canberra_ticket_711
>>      right_y = array([ 0.01492537])
>> NameError: global name 'array' is not defined
>>   
>> Nils
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev

Hi Damian,

Thank you for your fast response. Works for me.

Just one failure persists

======================================================================
FAIL: test_imresize (test_pilutil.TestPILUtil)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/decorators.py", 
line 82, in skipper
     return f(*args, **kwargs)
   File 
"/usr/local/lib64/python2.5/site-packages/scipy/misc/tests/test_pilutil.py", 
line 25, in test_imresize
     assert_equal(im1.shape,(11,22))
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 172, in assert_equal
     assert_equal(len(actual),len(desired),err_msg,verbose)
   File 
"/usr/local/lib64/python2.5/site-packages/numpy/testing/utils.py", 
line 180, in assert_equal
     assert desired == actual, msg
AssertionError:
Items are not equal:
  ACTUAL: 0
  DESIRED: 2

----------------------------------------------------------------------
Ran 2303 tests in 31.565s

FAILED (failures=1)
  
Cheers,
          Nils



More information about the SciPy-Dev mailing list