Can't install ansible properly with pip and devel branch

27 views
Skip to first unread message

tterr...@gmail.com

unread,
Sep 9, 2020, 11:22:52 AM9/9/20
to Ansible Project

I am using:



to install ansible. I have uninstalled any previous versions. I am using python 3.8.

After installation is complete, I do not have the "ansible", "ansible-playbook", etc commands. In the past, pip installation would also provide me with those. As a workaround I am using ansible from a local git checkout and sourcing ansible/hacking/env-setup every time I start work.

What could be wrong?

Felix Fontein

unread,
Sep 9, 2020, 11:31:38 AM9/9/20
to ansible...@googlegroups.com
Hi,

> I am using:
>
> sudo pip install git+https://github.com/ansible/ansible@devel
>
> pip install git+https://github.com/ansible/ansible@devel --user
>
> to install ansible. I have uninstalled any previous versions. I am
> using python 3.8.

have you installed previous versions *before* installing ansible-base
from git? (The ansible/ansible repository no longer contains ansible,
but ansible-base.)

Cheers,
Felix

tterr...@gmail.com

unread,
Sep 9, 2020, 11:36:57 AM9/9/20
to Ansible Project
In the past, yes I had, also from the devel branch using pip.

At one point, I decided to update and re-installed ansible using pip from the devel branch. I got weird errors, searched, found out I had to remove previous version, I uninstalled everything and then re-installed the devel branch.

tterr...@gmail.com

unread,
Sep 9, 2020, 11:46:02 AM9/9/20
to Ansible Project
Can it be that ansible-lint breaks it?

Felix Fontein

unread,
Sep 9, 2020, 11:50:42 AM9/9/20
to ansible...@googlegroups.com
Hi,

> Can it be that ansible-lint breaks it?

that's very likely, since it has a dependency on ansible, which right
now means ansible 2.9. The situation will get better once Ansible 2.10.0
is released (i.e. later this month).

Cheers,
Felix

tterr...@gmail.com

unread,
Sep 9, 2020, 11:52:23 AM9/9/20
to Ansible Project
Will installing ansible-lint from its development branch help?

Felix Fontein

unread,
Sep 9, 2020, 11:59:16 AM9/9/20
to ansible...@googlegroups.com
Hi,

> Will installing ansible-lint from its development branch help?

probably not, since it requires ansible >= 2.8:
https://github.com/ansible/ansible-lint/blob/master/setup.cfg#L73

If you install the other dependencies manually and install it without
automatically installing dependencies, it should work though.

Cheers,
Felix


tterr...@gmail.com

unread,
Sep 9, 2020, 12:10:51 PM9/9/20
to Ansible Project
OK thanks a lot!
Reply all
Reply to author
Forward
0 new messages