Join us at engage.eucalyptus.com
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.
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
euca_conf commands work good, everyone else that I test has given me errors similar to this.
CentOS5.5 euca2ools1.3
Exactly same problem. every euca- command fails with this error. Downgraded to 1.2, okay by now.
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.
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)
homeycat, thanks for the update. Can you please post what you other weird problem with 1.3 is?
thanks!
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.
[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
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.
[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