Discussion:
[ansible-project] connect ansible with Rackspace cloud
Mohamed Megdadi
2015-07-21 15:22:15 UTC
Permalink
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
--
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-project+***@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.
Chris Church
2015-07-21 19:18:57 UTC
Permalink
What's the other error you see? Have you installed pyrax using pip?
Post by Mohamed Megdadi
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
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8b8a9962-1bcd-43c2-94ce-82ca7679d9af%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/8b8a9962-1bcd-43c2-94ce-82ca7679d9af%40googlegroups.com?utm_medium=email&utm_source=footer>
.
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 ansible-project+***@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/CAH%2BKTJ7kFwoOTb%3DYn-mdKKpo%2BvPxDowcDqxW1mT%2Bz8oFZ%2BmtYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Mohamed Megdadi
2015-07-22 05:59:14 UTC
Permalink
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"
Post by Mohamed Megdadi
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
--
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-project+***@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/de7da74a-a8ed-4e20-b6d9-d07fb8e08f06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...