[Numpy-discussion] numpy.fromiter in numpypy

Albert-Jan Roskam fomcl at yahoo.com
Thu Jan 1 14:57:50 EST 2015


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 at debian:~$ sudo pypy $(which pip) install -U git+https://bitbucket.org/pypy/numpy.git
albertjan at debian:~$ sudo pypy -c 'import numpy'  # sudo: as per the installation instructions
albertjan at 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




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a 

fresh water system, and public health, what have the Romans ever done for us?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 



More information about the NumPy-Discussion mailing list