Reputation: 673
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?
Upvotes: 2
Views: 3732
Reputation: 677
If you are running into this error on RHEL do this...
sudo yum install -y python-boto
sudo pip install boto
Upvotes: 0
Reputation: 673
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.
Upvotes: 7