
I am trying to build lxml package from the following link https://pypi.python.org/packages/source/l/lxml/lxml-3.5.0.tar.gz#md5=9f0c5f1... using pypy. *$ pypy setup.py build* I run this pypy in a virtualenv. I am using pypy 4.0.1 and lxml 3.5.0. The build fails with the following error: cc -O2 -fPIC -Wimplicit -I/usr/include/libxml2 -Isrc/lxml/includes -I/root/venv/pypy/include -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w src/lxml/lxml.etree.c: In function '__Pyx_call_return_trace_func': src/lxml/lxml.etree.c:4323:13: error: 'PyThreadState' has no member named 'tracing' tstate->tracing++; ^ src/lxml/lxml.etree.c:4324:13: error: 'PyThreadState' has no member named 'use_tracing' tstate->use_tracing = 0; ^ src/lxml/lxml.etree.c:4325:33: error: 'PyThreadState' has no member named 'c_tracefunc' if (CYTHON_TRACE && tstate->c_tracefunc) ^ src/lxml/lxml.etree.c:4326:17: error: 'PyThreadState' has no member named 'c_tracefunc' tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result); ^ src/lxml/lxml.etree.c:4326:37: error: 'PyThreadState' has no member named 'c_traceobj' tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result); ^ src/lxml/lxml.etree.c:4326:58: error: 'PyTrace_RETURN' undeclared (first use in this function) tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result); ^ src/lxml/lxml.etree.c:4326:58: note: each undeclared identifier is reported only once for each function it appears in src/lxml/lxml.etree.c:4327:17: error: 'PyThreadState' has no member named 'c_profilefunc' if (tstate->c_profilefunc) ^ src/lxml/lxml.etree.c:4328:17: error: 'PyThreadState' has no member named 'c_profilefunc' tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result); ^ src/lxml/lxml.etree.c:4328:39: error: 'PyThreadState' has no member named 'c_profileobj' tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result); and this error goes on for thousands of lines. I tried googling this error and I came across this link : https://bitbucket.org/pypy/pypy/issues/1185/cpyext-missing-members-in-pythre... I am not sure if this is the same issue as mine. Any help would be appreciated. *Note*: This lxml package is successfully built using python 2.7, 3.2, 3.4. Thank you. -- Regards, *Balavignesh S*
participants (2)
-
balavignesh
-
Stefan Behnel