[SciPy-dev] lognormal(): TypeError: Cannot convert float to numpy.ndarray
Robert Kern
robert.kern at gmail.com
Mon Sep 11 19:14:33 EDT 2006
rex wrote:
> Robert Kern <robert.kern at gmail.com> [2006-09-11 15:34]:
>> rex wrote:
>>>>>> import scipy as S
>>>>>> S.random.lognormal(0.,1.,7)
>>> Traceback (most recent call last):
>>> File "<stdin>", line 1, in ?
>>> File "mtrand.pyx", line 930, in mtrand.RandomState.lognormal
>>> TypeError: Cannot convert float to numpy.ndarray
>> Thank you. The problem is in numpy, not scipy, but I found the problem and fixed
>> it in SVN r3141.
>
> Wow, that was fast!! Thanks much.
>
> I don't know if this means I need to rebuild SciPy also, but I'll find
> out soon enough...
Not for this fix. However, if the last time you built scipy was versus a rather
older version of numpy, then numpy's C API may have changed. But that wasn't my
fault. :-)
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the SciPy-Dev
mailing list