In general, you will find more help on pypy-related questions in a pypy-related communication channel like [email protected] or visiting us on IRC at #pypy.
This is a known issue with the numpy-status page, since you are not the first to notice I will try to fix it soonish.
In general, the pypy port of numpy is not finished yet, we pass about 2/3 of the numpy test suite.
The nightly run of the test suite is probably more indicative of our current status, but it is not very concise. Here is the one from last night, you will notice that fromiter and fromfile indeed are not supported.
http://buildbot.pypy.org/builders/numpy-compatability-linux-x86-64/builds/395/steps/shell_5/logs/stdio
Help is needed and appreciated.
Matti

On 02/01/15 04:56, [email protected] wrote:
Message: 2
Date: Thu, 1 Jan 2015 19:57:50 +0000 (UTC)
From: Albert-Jan Roskam <[email protected]>
Subject: [Numpy-discussion] numpy.fromiter in numpypy
To: "[email protected]" <[email protected]>
Message-ID:
	<645635478.812990.1420142270937.javamail.ya...@jws10729.mail.gq1.yahoo.com>
	
Content-Type: text/plain; charset=UTF-8

Hi,

I would like to use the numpy implementation for Pypy. In particular, I would like to use numpy.fromiter, which is available according to this overview: http://buildbot.pypy.org/numpy-status/latest.html. However, contrary to what this website says, this function is not yet available. Conclusion: the website is wrong. Or am I missing something?

albertjan@debian:~$ sudo pypy $(which pip) install -U git+https://bitbucket.org/pypy/numpy.git
albertjan@debian:~$ sudo pypy -c 'import numpy'  # sudo: as per the installation instructions
albertjan@debian:~$ pypy
Python 2.7.8 (f5dcc2477b97386c11e4b67f08a2d00fbd2fce5d, Sep 19 2014, 10:37:41)
[PyPy 2.4.0 with GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> import numpy as np
>>>> np.__version__, sys.version
('1.9.0', '2.7.8 (f5dcc2477b97386c11e4b67f08a2d00fbd2fce5d, Sep 19 2014, 10:37:41)\n[PyPy 2.4.0 with GCC 4.8.2]')
>>>> np.fromiter
<function tmp at 0x00007fdc06e35bc8>
>>>> np.fromiter((i for i in range(10)), np.float)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/pypy-2.4/site-packages/numpy/core/multiarray.py", line 55, in tmp
raise NotImplementedError("%s not implemented yet" % func)
NotImplementedError: fromiter not implemented yet

The same also applies to numpy.fromfile

Thanks in advance and happy 2015.



Regards,

Albert-Jan


_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to