Tag Archives: python

Eucalyptus euca2ools.3.0.1 configuration problem solved

Hi all, I would like to share a problem which I came across configuring euca2ools.3.0.1 on server.

Problem: I was not able to connect to my eucalyptus cloud from server running RHEL 5.7 even after installation euca2ools.3.0.1 from source

Traceback (most recent call last):
File “/euca2ools_3_0_2/bin/euca-register”, line 5, in <module>
pkg_resources.run_script(‘euca2ools==3.0.1’, ‘euca-register’)
File “build/bdist.linux-x86_64/egg/pkg_resources.py”, line 528, in run_script
File “build/bdist.linux-x86_64/egg/pkg_resources.py”, line 1394, in run_script
File “/euca2ools_3_0_2/lib/python2.7/site-packages/euca2ools-3.0.1-py2.7.egg/EGG-INFO/scripts/euca-register”, line 3, in <module>
import euca2ools.commands.euca.registerimage
File “/euca2ools_3_0_2/lib/python2.7/site-packages/euca2ools-3.0.1-py2.7.egg/euca2ools/commands/euca/__init__.py”, line 31, in <module>
from requestbuilder import Arg, MutuallyExclusiveArgList, AUTH, SERVICE
ImportError: cannot import name AUTH

Analyzing: I have installed following packages from tar ball/source code in a custom location using –prefix option from source

  1. python 2.7.5
  2. lxml (http://lxml.de/)
  3. requestbuilder (https://github.com/boto/requestbuilder)
  4. requests (http://www.python-requests.org/)
  5. setuptools (https://pypi.python.org/pypi/setuptools)
  6. six (http://pythonhosted.org/six/)

I have installed all the latest versions. If we can see the error its sure that we have some dependency missing. I googled it but could not find any where.

Solution: I contacted IRC and mailing list and found that “requests” version which I installed was 0.2.0 and it should be uninstalled and oldest version 0.1.0 was installed using pip command which is very useful in uninstalling and installing of python packages.

I need to reconfigure the installation again from source and build the ecua2ools from source. I was able to then run the euca2ools perfectly.

Thanks for irc #eucalyptus and users mailing list of eucalyptus !!