[pypy-dev] AttributeError: 'built in-code' object has no attribute 'co_code'
tkadm30 at yandex.com
Fri Oct 13 07:22:40 EDT 2017
I upgraded pypy to 5.9.0 and cython to 0.27.1.
Compilation of libschevo fails under PyPy:
erob at marina:~/src/django-hotsauce-pypy/extras/libschevo$ sudo pypy
setup.py develop --prefix=/usr/local/pypy
writing dependency_links to lib/libschevo.egg-info/dependency_links.txt
writing entry points to lib/libschevo.egg-info/entry_points.txt
writing requirements to lib/libschevo.egg-info/requires.txt
writing top-level names to lib/libschevo.egg-info/top_level.txt
reading manifest file 'lib/libschevo.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README' anywhere in distribution
warning: no files found matching '*' under directory 'schevo/templates'
writing manifest file 'lib/libschevo.egg-info/SOURCES.txt'
building 'schevo.store._s_persistent' extension
cc -pthread -DNDEBUG -O2 -fPIC
lib/schevo/store/_s_persistent.c:8:27: fatal error: weakrefobject.h: No
such file or directory
error: command 'cc' failed with exit status 1
Will need to investigate further why weakrefobject.h is missing from
PyPy or find a workaround.
On 13/10/17 01:16 AM, Yury V. Zaytsev wrote:
> You are using very outdated versions of both PyPy (latest = 5.9.0) and
> Cython (latest = 0.27.1), could you please try again with the latest
> versions? There have been a lot of compatibility work going on both
> sides, and it is not unlikely that the issue has been fixed in the
More information about the pypy-dev