0

Hi please help me to install libxml2-2.7.1 and libxslt-1.1.24.tar.gz fot python 2.5.2.
When i try to install libxml2-2.7.1, i gets installed but when i import the libxml2 in python interpreter then i get the following error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "libxml2.py", line 1, in <module>
import libxml2mod
ImportError: /usr/local/lib/python2.5/site-packages/libxml2mod.so: undefined symbol: xmlTextReaderSetup

Please help me in resolving this issue.

Thanks in advance

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by woooee
0

You have to install both libxml2 and the python binding for libxml2. You can find download links for both libraries here http://xmlsoft.org/ What distro are you using. Most disto's package managers can install these.

ImportError: /usr/local/lib/python2.5/site-packages/libxml2mod.so: undefined symbol:

See if the python bindings for libxml2 are in /usr/local/lib/python2.5/site-packages/. They could very well be installed in /usr/lib/python2.5/site-packages/ (no /local). If so, just symlink to /usr/local/lib...etc.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.