connect ansible with Rackspace cloud

23 views
Skip to first unread message

Mohamed Megdadi

unread,
Jul 21, 2015, 11:28:25 AM7/21/15
to ansible...@googlegroups.com
Hello, 

I am  new at ansible, i am trying to run a playbook to connect ansible with Rackspace cloud, each time we run it we have this error: "pyrax is required for this module" but when we try to import Pyrax via python, we get another error.

i am using Ubuntu 14.04 OS.


Thanks,
Mohamed 

Chris Church

unread,
Jul 21, 2015, 3:19:23 PM7/21/15
to ansible...@googlegroups.com
What's the other error you see?  Have you installed pyrax using pip?

--
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/8b8a9962-1bcd-43c2-94ce-82ca7679d9af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohamed Megdadi

unread,
Jul 22, 2015, 1:59:15 AM7/22/15
to Ansible Project
Hello Chris, 

The error i received is, 

"Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/pyrax/__init__.py", line 50, in <module> from .identity import * File "/usr/lib/python2.7/dist-packages/pyrax/identity/rax_identity.py", line 8, in <module> from ..base_identity import BaseIdentity File "/usr/lib/python2.7/dist-packages/pyrax/base_identity.py", line 20, in <module> from .resource import BaseResource File "/usr/lib/python2.7/dist-packages/pyrax/resource.py", line 26, in <module> import pyrax File "/usr/lib/python2.7/dist-packages/pyrax/pyrax/__init__.py", line 50, in <module> from .identity import * File "/usr/lib/python2.7/dist-packages/pyrax/pyrax/identity/rax_identity.py", line 10, in <module> from ..cloudnetworks import CloudNetworkClient File "/usr/lib/python2.7/dist-packages/pyrax/pyrax/cloudnetworks.py", line 22, in <module> from pyrax.resource import BaseResource ImportError: cannot import name BaseResource" 
Reply all
Reply to author
Forward
0 new messages