1

I attempted to run the following boto library example:

$echo $PYTHONPATH
/Library/Python/2.7/site-packages/

$python
Python 2.7.10 (default, Jul 14 2015, 19:46:27) 
>>> from boto.ec2.autoscale import AutoScaleConnection
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named boto.ec2.autoscale

$ls $PYTHONPATH | grep -i boto
boto3
boto3-1.3.0.dist-info
botocore
botocore-1.4.6.dist-info

Following this useful PYTHONPATH question, I don't understand why that module isn't found.

Community
  • 1
  • 1
Kevin Meredith
  • 41,036
  • 63
  • 209
  • 384

1 Answers1

2

It seems like you installed boto3 instead of boto.

Install boto or use boto3 api.

falsetru
  • 357,413
  • 63
  • 732
  • 636