[Numpy-tickets] [NumPy] #309: AttributeError: 'list' object has no attribute 'shape'

NumPy numpy-tickets at scipy.net
Tue Oct 3 03:09:28 CDT 2006


#309: AttributeError: 'list' object has no attribute 'shape'
------------------------+---------------------------------------------------
 Reporter:  nils        |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  numpy.core  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 {{{
 ======================================================================
 ERROR: Ticket #160
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib/python2.4/site-
 packages/numpy/core/tests/test_regression.py", line 267, in
 check_rec_iterate
     [2,2.2,'2.0']],dtype=descr)
   File "/usr/lib/python2.4/site-packages/numpy/core/records.py", line 502,
 in array
     return fromarrays(obj, dtype=dtype, shape=shape, **kwds)
   File "/usr/lib/python2.4/site-packages/numpy/core/records.py", line 268,
 in fromarrays
     shape = arrayList[0].shape
 AttributeError: 'list' object has no attribute 'shape'

 ----------------------------------------------------------------------
 Ran 497 tests in 0.665s

 FAILED (errors=1)
 }}}

 >>> numpy.__version__
 '1.0.dev3246'

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/309>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list