[Zope-CMF] CMFOODocument install problem

Asad Quraishi aquraishi@skyesystems.com
Thu, 01 May 2003 12:28:44 -0400


I am trying to install this for the second time.

My problems are with the libxml2-python and libxslt-python modules.
These are installed via RPM however my Zope tarball came with Python
2.1.3.  I suppose this is good since this is what I need.  I have 2.2 on
my machine which is clearly not compatible - I tried.

I thought I could copy the libxml2.py, libxml2mod.so (version 2.4.23-1),
libxsltmod.so and libxslt.py (1.0.19-1) files (xml/xslt python bindings)
to the Zope/lib/python2.1/site-packages directory.  I figured this was
the right directory as when I run python 2.1.3 and import sys and use
sys.path it tells me that this dir is in the path.

I tried calling these librairies through the 2.1.3 python version in the
Zope/bin dir I get the following error:

  >>> import libxml2
Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File
"/usr/local/zope/Zope-2.6.1-linux2-x86/lib/python2.1/site-packages/libxml2.py", 

line 1, in ?
      import libxml2mod
ImportError:
/usr/local/zope/Zope-2.6.1-linux2-x86/lib/python2.1/site-packages/libxml2mod.so: 

undefined symbol: PyType_IsSubtype


If I run from within the dir containing libxml2mod.so (cd
/usr/local/zope/Zope/lib/python2.1/site-packages)  I get the following
error:

  >>> import libxml2
Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "libxml2.py", line 1, in ?
      import libxml2mod
ImportError: ./libxml2mod.so: undefined symbol: PyType_IsSubtype


Help!

- Asad