Cannot import name add_docstring
Issue #45
invalid
On ubuntu 15.10:
I've tried installing into root pypy and through a pypy virtualenv. Same error when I try to import numpy:
Python 2.7.9 (2.6.0+dfsg-3, Jul 04 2015, 05:43:17)
[PyPy 2.6.0 with GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/astaley/num-pypy/site-packages/numpy/__init__.py", line 180, in <module>
from . import add_newdocs
File "/home/astaley/num-pypy/site-packages/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/home/astaley/num-pypy/site-packages/numpy/lib/__init__.py", line 9, in <module>
from .index_tricks import *
File "/home/astaley/num-pypy/site-packages/numpy/lib/index_tricks.py", line 12, in <module>
from . import function_base
File "/home/astaley/num-pypy/site-packages/numpy/lib/function_base.py", line 26, in <module>
from numpy.core.multiarray import _insert, add_docstring
ImportError: cannot import name 'add_docstring'
Comments (3)
-
-
- changed status to invalid
This is not a bug, but please offer suggestions as to how we could have made the problem easier for you to troubleshoot and/or avoid.
-
reporter That worked; thanks.
2 things would help:
- setup.py verifying this and erroring if version conflict
- docs on https://bitbucket.org/pypy/numpy stating to checkout your exact version of pypy (it only mentions 4.0.1)
- Log in to comment
That's expected: the head version isn't compatible with PyPy 2.6.0. You need to checkout the tag
pypy-2.6.0
and install from that.