On 12/9/19 10:30 PM, Mark Bolden wrote:
> I am on Centos 7 and I was trying to install Pyrax and seeing these errors:
>
> ERROR: os-service-types 1.7.0 has requirement pbr!=2.1.0,>=2.0.0, but you'll
> have pbr 1.10.0 which is incompatible.
> ERROR: python-keystoneclient 3.22.0 has requirement pbr!=2.1.0,>=2.0.0, but
> you'll have pbr 1.10.0 which is incompatible.
> ERROR: python-keystoneclient 3.22.0 has requirement requests>=2.14.2, but
> you'll have requests 2.6.0 which is incompatible.
> ERROR: oslo-config 6.12.0 has requirement requests>=2.18.0, but you'll have
> requests 2.6.0 which is incompatible.
> ERROR: stevedore 1.31.0 has requirement pbr!=2.1.0,>=2.0.0, but you'll have
> pbr 1.10.0 which is incompatible.
>
>
> So, I Installed Python 3.6 and ran pip3 install pyrax and success! The
> problem seems to be that ansible-playbook is
> still looking at Python 2.7 which does NOT have the pyrax module installed
> because I am seeing this:
>
> TASK [Database build request]
> ****************************************************************************************************************************
> fatal: [devdb -> localhost]: FAILED! => {"changed": false, "msg": "pyrax is
> required for this module"}
>
> How can I tell Ansible to NOT use Python 2.7 and only use 3.6 and its modules?
Set the following variable to the path of your Python binary:
ansible_python_interpreter: /usr/bin/python3
Regards
Racke
>
> Anyone? Thanks in advance!!
> -M
>
> --
> 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]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/6b5c8efe-0e1c-4728-9217-2894220268a4%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/6b5c8efe-0e1c-4728-9217-2894220268a4%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/49a16888-ce7d-7945-d253-ac62d1643bd9%40linuxia.de.
signature.asc
Description: OpenPGP digital signature
