[SciPy-dev] TypeError: __array_data__ must return a string providing the pointer to data
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Fri Oct 21 12:48:25 CDT 2005
On Fri, 21 Oct 2005 10:52:00 -0600
Travis Oliphant <oliphant at ee.byu.edu> wrote:
> Stephen Walton wrote:
>
>>Nils Wagner wrote:
>>
>>
>>
>>>Python 2.4 (#2, May 12 2005, 14:45:33)
>>>[GCC 3.3.3 (SuSE Linux)] on linux2
>>>Type "help", "copyright", "credits" or "license" for more
>>>information.
>>>
>>>
>>>
>>>
>>>>>>from MLab import *
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>MLab is part of Numeric 23.8 (at least on my machine) and
>>doesn't make
>>arrays which are quite 100% compatible with the new scipy
>>core. You'll
>>see the same error message if you try to use matplotlib
>>to plot the
>>contents of a new scipy core array.
>>
>>
> You need the latest Numeric from CVS to do this
>correctly.
>
Traceback (most recent call last):
File "test_lu.py", line 4, in ?
lu, piv = linalg.lu_factor(a)
File
"/usr/local/lib/python2.4/site-packages/scipy/linalg/decomp.py",
line 189, in lu_factor
a1 = asarray(a)
File
"/usr/local/lib/python2.4/site-packages/scipy/base/numeric.py",
line 36, in asarray
return array(a, dtype, copy=0, fortran=fortran)
TypeError: __array_data__ must return a string providing
the pointer to data.
>>> import Numeric
>>> Numeric.__version__
'24.0b2'
>>>
> -Travis
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
More information about the Scipy-dev
mailing list