Re: [xml] libxml2 2.6.7 and Python
- From: Daniel Veillard <veillard redhat com>
- To: Dan West <dxw opti cgi net>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 2.6.7 and Python
- Date: Fri, 5 Mar 2004 04:35:26 -0500
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
get
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 setup.py 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 libxml2mod.so, and
libxml2.py(c).
yes but they don't seems to reference the right version of the library.
If the module gets compiled before "python setup.py 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
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]