I\'m trying to use AWS\'s Elastic Beanstalk, but when I run eb start
, I get \"ImportError: No module named boto Cannot run aws.push for local repository HEAD.\"
OK, this is a hack, and an ugly one, but it worked.
Now, the error is happening on the local machine, nothing to do with remote.
I have boto installed locally and I am NOT using virtualenv (for reasons of my own, to test a more barebones approach).
import boto print boto.file /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/boto/init.pyc
import sys sys.path.append("/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages")
Since you are appending to sys.path, you will only import modules from that addition if git aws.push hasn't found it in its own stuff.
That fixes the problem for now, except that it will re-occur on the next directory where you do an "eb init"
$cd ~/bin/AWS-ElasticBeanstalk-CLI-2.6.1
now
$find ~/bin -name dev_tools.py ~/bin/AWS-ElasticBeanstalk-CLI-2.6.1/AWSDevTools/Linux/scripts/aws/dev_tools.py
edit this file as in #3
if you do another eb init elsewhere you will see that your ugly hack is there as well.
Not great, but it works.
p.s. sorry for the formatting, newbie here, it's late and I wanna go skating.