# /opt/wp/Python-2.7.5/bin/virtualenv venv
# source venv/bin/activate
# pip install git+git://github.com/rackspace/pyrax.git --upgrade
# ansible-playbook apps/rackspace/play_rackspace.yml -i apps/rackspace/rax/rax.py--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/68d46265-463d-45eb-8e02-008dbceb7ff8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
(venv)[mozart@m-bamboo01 hegemon]$ venv/bin/python apps/rackspace/rax/rax.py
usage: rax.py [-h] (--list | --host HOST)
rax.py: error: one of the arguments --list --host is required
When I run using the system wide python it fails:
(venv)[mozart@m-bamboo01 hegemon]$ /opt/wp/Python-2.7.5/bin/python -c "import pyrax; print pyrax.__file__"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pyraxIt was trying to run ansible-playbook using the system wide python. As soon as I gave it the path to the ansible-playbook within the virtualenv everything began to work. I hope this helps others that run into the same problem. Your tips really helped!