Have you tried running the inventory module directly?  
/opt/wp/Python-2.7.5/bin/python /path/to/apps/rackspace/rax/rax.py

I run the rax.py inventory script from a virtualenv without issue.

You might also try something like running 'pip freeze' and 
'/opt/wp/Python-2.7.5/bin/python -c "import pyrax; print pyrax.__file__"' to 
see if pyrax is indeed installed in the virtualenv.

Also, you might want to try installing pyrax from pypi instead of git.  pip can 
do strange things installing from git sometimes, especially without providing 
"#egg=pyrax" on the end.  'master' in github for pyrax is the same version you 
get from pypi.

One other thought, is that it could be you are missing a dependency of pyrax, 
which the python -c command above may help you identify.  But I might try first 
doing "pip install -I pyrax"
-- 
Matt Martz
[email protected]

On May 23, 2014 at 12:01:48 PM, David Neudorfer 
([email protected]) wrote:

This is confusing. I've definitely installed the pyrax module. Here is my 
workflow:

# /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

I would expect this to run the rax.py inventory file just fine but its failing 
now. I've destroyed the virtualenv and recreated it to no avail.

Thanks for any help.
--
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 [email protected].
To post to this group, send email to [email protected].
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.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/etPan.537f8118.6b8b4567.a60%40mobiletuvix.rackspace.corp.
For more options, visit https://groups.google.com/d/optout.

Reply via email to