[Numpy-discussion] view takes no keyword arguments exception

Charles R Harris charlesr.harris@gmail....
Wed May 20 21:10:32 CDT 2009


On Wed, May 20, 2009 at 3:51 PM, Jochen Schroeder <cycomanic@gmail.com>wrote:

> Hi all,
>
> I'm trying to help someone out with some problems with pyfftw
> (pyfftw.berlios.de). He is seeing an exception,
>
> TypeError: view() takes no keyword arguments
>
> This doesn't only happen when he uses pyfftw but also when he does the
> following:
>
> >>> import numpy as np
> >>> a=np.arange(10)
> >>> print a.view(dtype='float')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> TypeError: view() takes no keyword arguments
>
> I he's on Windows and sees this error both with numpy 1.1.1 and 1.3.
> I'm a bit lost anybody have an idea what could be the problem?
>

I don't see this error on linux:

In [3]: a.view(dtype=double)
Out[3]: array([ 1.,  1.,  1.,  1.,  1.,  1.,  1.,  1.,  1.,  1.])

What version of python do you have installed? Did try deleting the previous
version of numpy from site-packages before install? Windows 32 or 64 bit?
Etc.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090520/bcc8420c/attachment.html 


More information about the Numpy-discussion mailing list