Corporate Home Open Source Home
Syndicate content
Eucalyptus

Join us at engage.eucalyptus.com

10 replies [Last post]
torbael
Offline
Joined: 03/08/2010

Hi,

I'm updating my system to Eucalyptus 2.0 and euca2ools 1.3. All works fine, but some commands of euca2ools fails. I have a CentOS installation.

And example of this fail:

[root@localhost ~]# euca-describe-availability-zones verbose
Traceback (most recent call last):
File "/usr/bin/euca-describe-availability-zones", line 39, in ?
from euca2ools import Euca2ool, Util, ConnectionFailed
ImportError: No module named euca2ools

Downgrading euca2ools to 1.2 version, all commands runs fine.

mgarnaat
Offline
Joined: 08/12/2010
Hi - After upgrading to

Hi -

After upgrading to euca2ools 1.3, do all of the euca2ools commands fail with this message or only some? Could you tell me which ones are working?

Thanks,

Mitch

torbael
Offline
Joined: 03/08/2010
euca_conf commands work good,

euca_conf commands work good, everyone else that I test has given me errors similar to this.

bestwc
Offline
Joined: 08/20/2010
CentOS5.5 euca2ools1.3

CentOS5.5 euca2ools1.3

Exactly same problem. every euca- command fails with this error. Downgraded to 1.2, okay by now.

mgarnaat
Offline
Joined: 08/12/2010
I think I understand the

I think I understand the problem. CentOS is still distributing Python 2.4 by default. The euca2ools installer has a dependency on python2.5. So, python2.5 is installed and then euca2ools is installed as a library for python2.5. However, when you run the euca2ools scripts, they are still being run with the python2.4 interpreter and the euca2ools library cannot be found.

To confirm this, you could try creating a symlink in /usr/bin so that /usr/bin/python was linked to /usr/bin/python2.5.

homeycat
Offline
Joined: 08/21/2010
A short script would help

I use the following shell script to address the problem:

sudo su
find /usr/bin -type f -name 'euca-*' | xargs sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python25/g'
find /usr/sbin -type f -name 'euca-*' | xargs sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python25/g'

and then it works.
(whereas finally I fall back to 1.2 for another weird problem of 1.3)

neil
Offline
Joined: 04/28/2009
homeycat, thanks for the

homeycat, thanks for the update. Can you please post what you other weird problem with 1.3 is?

thanks!

homeycat
Offline
Joined: 08/21/2010
I was having the problem of "euca-register"

Just like the post:

http://open.eucalyptus.com/forum/problem-registring-image

I was having the same problem.
I didn't try all euca- commands but in my case no other commands except euca-register would fail after I changed the intepreter to #/usr/bin/python25

All command in euca2ools 1.2 works well with eucalyptus 2.0 right now.

into11
Offline
Joined: 11/17/2010
To confirm this, you could try creating a symlink in /usr/bin so

[quote=mgarnaat]

To confirm this, you could try creating a symlink in /usr/bin so that /usr/bin/python was linked to /usr/bin/python2.5.[/quote]
Hello, can you show me steps on terminal how to do this? I am really confuse this

thank you

torbael
Offline
Joined: 03/08/2010
Old post

This is an old post. The original post was for euca2ools 1.3. The actual package of euca2ools 1.3.1 don't have these problems.

into11
Offline
Joined: 11/17/2010
my euca2ools problem likes this

[root@localhost ]# euca-describe-availability-zones verboseTraceback (most recent call last):
File "/usr/local/bin/euca-describe-availability-zones", line 39, in ?
from euca2ools import Euca2ool, Util, ConnectionFailed
File "/usr/lib/python2.4/site-packages/euca2ools/__init__.py", line 1344
finally:
^

anyone give me some helps or ideas?

regards