Ezylryb Ezylryb - 1 year ago 118
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download