Open timfallmk opened 1 year ago
I think this has to do with older versions of python / pip. I have an idea on how to make it more robust, but in the meantime I might have a workaround. You can use the asdf-python integration to install a newer python version to use with ansible. In my limited testing, this worked for me:
asdf install ansible-core 2.14.5@3.11.3
Note that ansible seems to have changed from ansible-base
to ansible-core
in newer versions 🤷
Yeah, the ansible project keeps switching around their packaging and naming and it gets very confusing. IIRC ansible-core
is a smaller set of packages with less included. They seem to have switched from one to the other at 2.9
.
Good suggestion to use a newer version of python, but I still get
asdf install ansible-core 2.14.5@3.11.3
No such plugin: ansible-core
or
asdf install ansible-base 2.14.5@3.11.3
python
python 3.11.3 is already installed
Requirement already satisfied: setuptools in ./.asdf/installs/ansible-base/2.14.5@3.11.3/venv/lib/python3.11/site-packages (65.5.0)
Collecting setuptools
Downloading setuptools-67.7.2-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 5.0 MB/s eta 0:00:00
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 65.5.0
Uninstalling setuptools-65.5.0:
Successfully uninstalled setuptools-65.5.0
Successfully installed setuptools-67.7.2
Requirement already satisfied: pip in ./.asdf/installs/ansible-base/2.14.5@3.11.3/venv/lib/python3.11/site-packages (22.3.1)
Collecting pip
Downloading pip-23.1.2-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 4.2 MB/s eta 0:00:00
Collecting wheel
Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
Installing collected packages: wheel, pip
Attempting uninstall: pip
Found existing installation: pip 22.3.1
Uninstalling pip-22.3.1:
Successfully uninstalled pip-22.3.1
Successfully installed pip-23.1.2 wheel-0.40.0
ERROR: Could not find a version that satisfies the requirement ansible-base==2.14.5 (from versions: 0.0.1a1, 0.0.1a2, 2.10.0b1, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0rc4, 2.10.0, 2.10.1rc1, 2.10.1rc2, 2.10.1rc3, 2.10.1, 2.10.2rc1, 2.10.2, 2.10.3rc1, 2.10.3, 2.10.4rc1, 2.10.4, 2.10.5rc1, 2.10.5, 2.10.6rc1, 2.10.6, 2.10.7rc1, 2.10.7, 2.10.8rc1, 2.10.8, 2.10.9rc1, 2.10.9, 2.10.10rc1, 2.10.10, 2.10.11rc1, 2.10.11, 2.10.12rc1, 2.10.12, 2.10.13rc1, 2.10.13, 2.10.14rc1, 2.10.14, 2.10.15rc1, 2.10.15, 2.10.16rc1, 2.10.16, 2.10.17rc1, 2.10.17)
ERROR: No matching distribution found for ansible-base==2.14.5
Totally broken with Python 3.12. The minimum version of Ansible supporting that is 2.16.
See https://github.com/ansible/ansible/issues/81946 and the support matrix
Describe the bug
Listing latest releases with the plugin ends at 2.10.17, but the latest release (found in pip) is 2.14.4 (as of this writing)
Steps to reproduce
Expected behavior
Latest should keep track with pip releases (to my understanding)
Screenshots
Additional context
Just a thanks 🧇 for making this!