etree.cpython-34m.so: undefined symbol: PyExc_SystemErro
REPEAT without HTML ___________________________________________________________ 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. 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? I work on CentOS7 x64 python34 x86_64 from lxml import etree print("%-20s: %s" % ('Python', sys.version_info)) Python : sys.version_info(major=3, minor=4, micro=5, releaselevel='final', serial=0) print("%-20s: %s" % ('lxml.etree', etree.LXML_VERSION)) lxml.etree : (3, 7, 2, 0) print("%-20s: %s" % ('libxml used', etree.LIBXML_VERSION)) libxml used : (2, 9, 3) print("%-20s: %s" % ('libxml compiled', etree.LIBXML_COMPILED_VERSION)) libxml compiled : (2, 9, 3) print("%-20s: %s" % ('libxslt used', etree.LIBXSLT_VERSION)) libxslt used : (1, 1, 29) Показать цитату целикомПоказать всю переписку libxslt compiled : (1, 1, 29) -- С уважением, Игорь Финковский +7 (909) 256-90-45 89092569045@ya.ru
Am 11. Januar 2017 10:42:10 MEZ schrieb "Финковский Игорь":
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.
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?
I work on CentOS7 x64 python34 x86_64
Is that an embedded Python runtime? Somehow, loading the shared library etree doesn't link it against the symbols of the CPython runtime on your side. However, linking it explicitly against that runtime library is not the right fix. CPython should provide these symbols itself already. Stefan
participants (2)
-
Stefan Behnel
-
Финковский Игорь