Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > libxml2 Python bindings error

Thread Tools

libxml2 Python bindings error

Juergen R. Plasser
Posts: n/a

I have installed libxml2-2.5.7, libxslt-1.0.30 from source and the bindings

Everything seems to compile fine, but when I try to import the libxml2
library in python I get the following error:

Python 2.1.3 (#1, Feb 10 2003, 10:37:44)
[GCC 2.95.3 20010315 (SuSE)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import libxml2

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.1/site-packages/", line 1, in ?
import libxml2mod
ImportError: /usr/local/lib/python2.1/site-packages/
undefined symbol: xmlNewTextReaderFilename

How can I get rid of this error?
I need this libs for a Zope product called CMFOODocument, so I am depening
on python 2.1.3.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python libxml2 xpath extensions shaun roe XML 2 11-13-2007 04:06 PM
cannot import libxml2 python module on windoze using activePerl orPython IDLE Andrew Marlow Python 2 01-18-2007 07:57 AM
can't link Python 2.4.1 against external libxml2 ... OpenMacNews Python 0 04-03-2005 09:04 PM
libxml2 w/ xpath python bindings Brian Donovan Python 1 01-23-2004 07:21 PM
Python 2.3 - libxml2/libxslt broken? Logan Python 1 11-21-2003 10:07 PM