[Haizea] Haizea on CentOS 5
Borja Sotomayor
borja at borjanet.com
Mon Sep 14 10:11:39 CDT 2009
Hi Sander,
> Yes, it was failing due to a typo I made in this path. Next, I needed to
> install python-docutils and I installed python-lxml, but now it leaves
> me with:
>
> ImportError: No module named etree.ElementTree
>
> I think from browsing the python documentation, that this is one of the
> new features in 2.5.
Yes, that's the new feature in 2.5 (and I _think_ it's the only
2.5-specific one Haizea depends on; I haven't tested Haizea on 2.4 in a
long time).
The ElementTree package is used in four Haizea modules (cli.commands,
cli.rpc_commands, common.opennebula_xmlrpc, and core.leases). Each of
these has the following line:
import xml.etree.ElementTree as ET
Could you try replacing this line with the following?
try:
import xml.etree.ElementTree as ET
except ImportError:
import elementtree.ElementTree as ET
Since ElementTree is not included in Python 2.4, you would also have in
install it manually. It's very likely that there will be a
python-elementtree package you can install. Otherwise, you will have to
download it and install it from http://effbot.org/zone/element-index.htm
Please let me know if this works, and I'll commit the change to SVN.
Cheers!
--
::::::::::::::::::::::::::::::::::::::::::::::::::
Borja Sotomayor, University of Chicago
Ph.D. Candidate, Department of Computer Science
Ryerson 257-C, 1100 East 58th Street, Chicago, IL
http://people.cs.uchicago.edu/~borja/
Haizea: http://haizea.cs.uchicago.edu/
··················································
"Dis maschine vill run und run!"
-- Kurt Gödel (on the Turing Machine)
::::::::::::::::::::::::::::::::::::::::::::::::::
More information about the Haizea
mailing list