From: Alex C. <ac...@ac...> - 2007-09-06 21:18:17
|
On 2007-09-06, deesto <joh...@gm...> wrote: > I'd like to be able to save and load XML content in my site. There's a great > tutorial called "XML in Plone with Marshall" [1], and on its Setup page, it > describes how to test for libxml2, a required Python module: > "If that works, you're golden. If not, you have some compiling to do." > But what if you're not "golden"? A system version is installed (in > /usr/include/libxml2), but when I test for bindings using Plone 2.5.3's > Python in Linux (plone/Python-2.4.4/bin/python), I get the dreaded > "ImportError: No module named libxml2" error. If I installed Plone using > the universal installer, which includes its own Python and Zope, should > libxml2 have been included? The unified installer installs Python but not the libxml2 Python bindings AFAIK (because it would need the libxml2 libs to do that, I'm guessing). (I'm running the unified installer now to make sure...) > If not, is it possible to add it without > disrupting the current instance? Sure, but you'll need to install the python bindings for the version of Python that is installed by the unified installer, i.e. /opt/Plone-3.0/bin/python (or wherever it is, somewhere in /opt/Plone-3.0 for sure ;-). To install the libxml2 python bindings in general, see: http://xmlsoft.org/python.html where it says: To install the Python bindings there are 2 options: * If you use an RPM based distribution, simply install the libxml2-python RPM (and if needed the libxslt-python RPM). * Otherwise use the libxml2-python module distribution corresponding to your installed version of libxml2 and libxslt. Note that to install it you will need both libxml2 and libxslt installed and run "python setup.py build install" in the module tree. HTH, Alex > Thanks, > ~John > > [1] http://plone.org/documentation/tutorial/xml-in-plone-with-marshall/setup > -- Alex Clark (http://aclark.net) |