Open natea opened 9 years ago
I also tried setting environment variables by exporting AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, but I still get the same error.
Sounds like ansible-playbook is not running with the same python that you're pip installing into.
Both python and ansible-playbook live in /usr/local/bin:
$ which ansible-playbook /usr/local/bin/ansible-playbook
$ which python /usr/local/bin/python
how can i tell which python ansible-playbook is using?
On Wed, Nov 5, 2014 at 5:39 PM, David Glick notifications@github.com wrote:
Sounds like ansible-playbook is not running with the same python that you're pip installing into.
— Reply to this email directly or view it on GitHub https://github.com/jazkarta/isc_edx_configuration/issues/2#issuecomment-61894847 .
nate@appsembler.com +1 (617) 517-4953 http://twitter.com/natea | http://linkedin.com/in/natea
$ which pip /usr/local/bin/pip
On Wed, Nov 5, 2014 at 5:53 PM, Nate Aune nate@appsembler.com wrote:
Both python and ansible-playbook live in /usr/local/bin:
$ which ansible-playbook /usr/local/bin/ansible-playbook
$ which python /usr/local/bin/python
how can i tell which python ansible-playbook is using?
On Wed, Nov 5, 2014 at 5:39 PM, David Glick notifications@github.com wrote:
Sounds like ansible-playbook is not running with the same python that you're pip installing into.
— Reply to this email directly or view it on GitHub https://github.com/jazkarta/isc_edx_configuration/issues/2#issuecomment-61894847 .
nate@appsembler.com +1 (617) 517-4953 http://twitter.com/natea | http://linkedin.com/in/natea
nate@appsembler.com +1 (617) 517-4953 http://twitter.com/natea | http://linkedin.com/in/natea
how can i tell which python ansible-playbook is using?
Open it and look at its shebang line.
which is a symlink to python2.7 -> ../Cellar/python/2.7.8_2/bin/python2.7
/usr/local/bin/python is a symlink to: python -> ../Cellar/python/2.7.8_2/bin/python
so it would appear that they're pointing to the same python?
On Wed, Nov 5, 2014 at 5:56 PM, David Glick notifications@github.com wrote:
how can i tell which python ansible-playbook is using?
Open it and look at its shebang line.
— Reply to this email directly or view it on GitHub https://github.com/jazkarta/isc_edx_configuration/issues/2#issuecomment-61897278 .
nate@appsembler.com +1 (617) 517-4953 http://twitter.com/natea | http://linkedin.com/in/natea
You can also be explicit about which python is being used with ansible_python_interpreter, either on the command line with -e
or in the top level playbook.
Ansible is freakishly finicky about boto, though. I've had trouble with it, and iirc @davisagli did too.
But for me, installing both globally with pip
worked.
When I try to run the ansible-playbook command, it says that boto is required. What's strange is that I've already installed boto globally with
sudo pip install boto
and i've created the~/.boto
file with my AWS keys.And here is an attempt to upgrade the already installed boto: