This is known and expected right now. Technically there is no `ansible` 2.10 right now. There is `ansible-base` which is a different package name. Eventually there will also be an `ansible` that has deps on `ansible-base`.
But python packaging doesn't really offer guards around this. Look at `docker` vs `docker-py`. 2 package names that both provide `docker`, produced by the same author. If a user who has `ansible==2.9.7` installed installs `ansible-base==2.10`, we can't really prevent it. We've discussed this internally on a few occasions. We can add docs to tell people if they plan to upgrade `ansible` to `ansible-base` explicitly, that `ansible` needs to be removed. However, eventually when `ansible` (we've been calling this ACD) is released, a user doing `pip install -U ansible` would have things in working order. OS packaging has ways to prevent it, such as Conflicts in rpms. On Fri, May 1, 2020 at 10:16 AM Alan Rominger <[email protected]> wrote: > The package name for Ansible changes with the current development version. > > It seems like pip lets me install Ansible 2.9 and 2.10 at the same time... > > bash-4.4# pip3 show ansible > Name: ansible > Version: 2.9.7 > Summary: Radically simple IT automation > Home-page: https://ansible.com/ > Author: Ansible, Inc. > Author-email: [email protected] > License: GPLv3+ > Location: /usr/local/lib/python3.6/site-packages > Requires: jinja2, PyYAML, cryptography > The directory '/var/lib/awx/.cache/pip/http' or its parent directory is > not owned by the current user and the cache has been disabled. Please check > the permissions and owner of that directory. If executing pip with sudo, > you may want sudo's -H flag. > bash-4.4# pip3 show ansible-base > Name: ansible-base > Version: 2.10.0.dev0 > Summary: Radically simple IT automation > Home-page: https://ansible.com/ > Author: Ansible, Inc. > Author-email: [email protected] > License: GPLv3+ > Location: /usr/local/lib/python3.6/site-packages > Requires: jinja2, PyYAML, cryptography > The directory '/var/lib/awx/.cache/pip/http' or its parent directory is > not owned by the current user and the cache has been disabled. Please check > the permissions and owner of that directory. If executing pip with sudo, > you may want sudo's -H flag. > > Is there a use case for this? Would it be a reasonable request for guard > rails of some kind? > > Alan > github: AlanCoding > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Development" 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-devel/CAADLLLjBpEK9P5o1RB1RDdB2vkPpwdSC_rWOOfWNK7KVhVr9fQ%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-devel/CAADLLLjBpEK9P5o1RB1RDdB2vkPpwdSC_rWOOfWNK7KVhVr9fQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Matt Martz @sivel sivel.net -- You received this message because you are subscribed to the Google Groups "Ansible Development" 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-devel/CAD8N0v-fOz695dm4Mb2NUaen%2Bw72oUtuqyus%2B2NPYfaNjQtOUQ%40mail.gmail.com.
