Cannot import name add_docstring

Create issue
Issue #45 invalid
Aaron Staley created an issue

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/", line 180, in <module>
    from . import add_newdocs
  File "/home/astaley/num-pypy/site-packages/numpy/", line 13, in <module>
    from numpy.lib import add_newdoc
  File "/home/astaley/num-pypy/site-packages/numpy/lib/", line 9, in <module>
    from .index_tricks import *
  File "/home/astaley/num-pypy/site-packages/numpy/lib/", line 12, in <module>
    from . import function_base
  File "/home/astaley/num-pypy/site-packages/numpy/lib/", line 26, in <module>
    from numpy.core.multiarray import _insert, add_docstring
ImportError: cannot import name 'add_docstring'

Comments (3)

  1. Ronan Lamy

    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.

  2. Ronan Lamy

    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.

  3. Log in to comment