[one-users] Haizea on CentOS 5

Sander Klous sander at nikhef.nl
Tue Sep 15 02:55:48 PDT 2009


Hi Borja,
We're getting closer... Your solution below solved the ElementTree issue.

The next problem is:

[opennebula at aulnes haizea]$ haizea -c 
/opt/haizea/share/haizea/etc/sample_trace.conf
Traceback (most recent call last):
  File "/opt/haizea/bin/haizea", line 12, in ?
    c.run()
  File "/opt/haizea/lib/python/haizea/cli/commands.py", line 117, in run
    manager = Manager(config, daemon, pidfile)
  File "/opt/haizea/lib/python/haizea/common/utils.py", line 132, in 
__call__
    self.instance = super(Singleton, self).__call__(*args, **kw)
  File "/opt/haizea/lib/python/haizea/core/manager.py", line 194, in 
__init__
    admission = import_class(admission)
  File "/opt/haizea/lib/python/haizea/common/utils.py", line 110, in 
import_class
    module = __import__(package_name, fromlist=[class_name])
TypeError: __import__() takes no keyword arguments

Thanks again,
Sander

Borja Sotomayor wrote:
> 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. 
>   



More information about the Users mailing list