etree.cpython-34m.so: undefined symbol: PyExc_SystemError

Финковский Игорь schrieb am 11.01.2017 um 10:36:
Good afternoon everyone. Sorry for the mistakes English is not my native. Could you help to solve the following problem: in the corporate web server runs the Python interpreter. When I execute the following code in it
from lxml import etree error occurs /usr/lib64/python3.4/site-packages/lxml/etree.cpython-34m.so: undefined symbol: PyExc_SystemError But the same code works in IDLE for example.
That suggests that both are using different Python runtimes. Is that an embedded Python in your web server? Can you load other binary libraries from it or is the problem really specific to lxml?
After talking with colleagues I realized that the error occurs because the lxml library does not have libpython.so in the list of dependencies. Could it be? how to rebuild specifying this dependency?
Not at all. :) Seriously, lxml's binary modules do not need to be linked against libpython, because the Python runtime already links against it, which then loads lxml. Somehow, the Python runtime in your web server behaves differently here. Stefan
participants (2)
-
Stefan Behnel
-
Финковский Игорь