Ezylryb Ezylryb - 1 month ago 5
Python Question

Run Boto with EC2 in Python with importing errors

With the Access Key & Secret Key located at my home directory, when I run the following in the command line:

from boto.ec2.connection import EC2Connection
conn = EC2Connection()


The console does not show any error but when I place the exact command in the python script. It displays an error, "No module named boto.ec2.connection".

Does anyone know why this error occur?

Answer

I just solve my problem after taking a short break. Yeah~!

sudo apt-get install python-boto

Python-boto package must be install for the connection to work.

Comments