Re: [xml] libxml2 2.6.7 and Python

On Thu, Mar 04, 2004 at 10:10:20PM -0600, Dan West wrote:
At 04:36 AM 3/4/2004 -0500, you wrote:
On Thu, Mar 04, 2004 at 03:13:36AM -0600, Dan West wrote:

I just installed libxml 2 2.6.7 from source on my Red Hat Linux box and
also built the libs for Python.  When I import the module from Python I 
the following traceback.  I've run ldconfig and made sure the library was
there.  Any ideas?

 You launched python 2.3 and the module was compiled for the system
python (which on Red Hat Linux is 2.2 or older).

The module gets compiled with "python build", correct?  That would 

  hum, no. The installations based on RPM use configure to detect
that python and python-devel are present, the makefile then
compiles the bindings which are then packaged as libxml2-python.

have been run under my build of Python 2.3.  When I check the 
/usr/local/lib/python2.3/site-packages directory I see, and

  yes but they don't seems to reference the right version of the library.

If the module gets compiled before "python build" then how do I 
tell it to build for the local Python 2.3 installation?

  No idea . You're using a Red Hat, then use RPMs. Your python
is built manually, your libxml2 is built manually, they apparently 
conflict with the system install, and don't play together well,
either you can debug the problem, or use the standard way of configuring
and maintaining the system, hard for me to give a better way to avoid
what you're seeing.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]