[pypy-issue] Issue #2723: Undefined symbol PyUnicode_New in PyPy3 (pypy/pypy)

carver issues-reply at bitbucket.org
Sat Dec 30 15:54:17 EST 2017

New issue 2723: Undefined symbol PyUnicode_New in PyPy3


It looks like CPython 3.5 has a [`PyUnicode_New` symbol](https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_New) that is not available on PyPy3. One example of a package that depends on it is [pysha3](https://github.com/tiran/pysha3):


$ git clone https://github.com/tiran/pysha3.git
$ cd pysha3

$ virtualenv -p pypy3 venv-pypy3
$ source venv-pypy3/bin/activate
$ pip install -e .

$ python -c "from sha3 import keccak_256"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "./pysha3/sha3.py", line 8, in <module>
    from _pysha3 import keccak_224, keccak_256, keccak_384, keccak_512
ImportError: ./pysha3/venv-pypy3/site-packages/pysha3-1.0.3.dev1-py3.5-linux-x86_64.egg/_pysha3.pypy3-59-x86_64-linux-gnu.so: undefined symbol: PyUnicode_New

$ python --version
Python 3.5.3 (d72f9800a42b, Oct 04 2017, 12:23:49)
[PyPy 5.9.0-beta0 with GCC 6.2.0 20160901]

More information about the pypy-issue mailing list