With my Plone 4 instance, I'm attempting to use Products.OpenXml.  In turn,
this requires openxmllib and in turn again, this requires lxml to be
installed.  Previously, I have just used "easy_install lxml" in a virtualenv
straight up and that works fine and buildout completes without a hitch
(read: openxmllib compiles fine).  

Since doing this manually is less than useful, I want to utilise buildout. 
The prescribed solution appears to use z3c.recipe.staticlxml.

Following examples and documentation here's what my buildout looks like:

[buildout]
parts =
    lxml
    ...
    plone-core-addons
    ...
eggs =
    lxml
    ...

[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
force = false

[plone-core-addons]
recipe = zc.recipe.egg
eggs = 
    lxml
    Products.OpenXml

If I try and run this on Python 2.6 (Plone 4; Centos 5.4; x86_64), with only
installing lxml, then everything works successfully -- lxml gets statically
built and the lxml egg is available for use by Plone (tested using zopepy
and looking at the "instance" script's paths).  

Now, if introduce Products.OpenXml to the buildout, lxml is still built fine
and buildout knows it's there, but openxmllib won't compile/install because
it can't find lxml.  My buildout with -v enabled:

Installing plone-core-addons.
Installing 'lxml', 'Products.OpenXml'.
We have the distribution that satisfies 'lxml==2.2.6'.
We have the best distribution that satisfies 'Products.OpenXml'.
Picked: Products.OpenXml = 1.1.0
Getting required 'openxmllib>=1.0.6'
  required by Products.OpenXml 1.1.0.
We have no distributions for openxmllib that satisfies 'openxmllib>=1.0.6'.
Getting distribution for 'openxmllib>=1.0.6'.
Running easy_install:
/home/buildout/instance-plone4/bin/python "-c" "from
setuptools.command.easy_install import main; main()" "-mUNxd"
"/home/buildout/instance-plone4/eggs/tmpprDuIP" "-Z" "-v"
"/home/buildout/instance-plone4/cache/dist/openxmllib-1.0.6.tar.gz"
path=/home/buildout/instance-plone4/eggs/distribute-0.6.14-py2.6.egg

install_dir /home/buildout/instance-plone4/eggs/tmpprDuIP
Processing openxmllib-1.0.6.tar.gz
<snip Unpacking... >
Running openxmllib-1.0.6/setup.py bdist_egg --dist-dir
/tmp/easy_install-Urh6x4/openxmllib-1.0.6/egg-dist-tmp-ju0TuT
Traceback (most recent call last):
<snip Traceback... >
  File "setup.py", line 5, in <module>
  File "/tmp/easy_install-Urh6x4/openxmllib-1.0.6/openxmllib/__init__.py",
line 17, in <module>
  File
"/tmp/easy_install-Urh6x4/openxmllib-1.0.6/openxmllib/wordprocessing.py",
line 5, in <module>
  File "/tmp/easy_install-Urh6x4/openxmllib-1.0.6/openxmllib/document.py",
line 14, in <module>
ImportError: No module named lxml
An error occured when trying to install openxmllib 1.0.6. Look above this
message for any errors that were output by easy_install.
While:
  Installing plone-core-addons.
  Getting distribution for 'openxmllib>=1.0.6'.
Error: Couldn't install: openxmllib 1.0.6

And the only solution is to easy_install lxml.  Any help is greatly, greatly
appreciated. 

Cheers,
David 
-- 
View this message in context: 
http://plone.293351.n2.nabble.com/lxml-installs-but-Products-OpenXml-openxmllib-can-t-see-it-tp5565184p5565184.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to