Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No versions listed after 2.10 But upstream is at 2.14 #28

Open
timfallmk opened this issue Apr 13, 2023 · 3 comments
Open

No versions listed after 2.10 But upstream is at 2.14 #28

timfallmk opened this issue Apr 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@timfallmk
Copy link

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

asdf add plugin ansible-base
asdf list all ansible-base

Expected behavior

Latest should keep track with pip releases (to my understanding)

Screenshots

asdf list all ansible-base
0.0.1a1
0.0.1a2
2.10.0
2.10.0b1
2.10.0rc1
2.10.0rc2
2.10.0rc3
2.10.0rc4
2.10.1
2.10.1rc1
2.10.1rc2
2.10.1rc3
2.10.2
2.10.2rc1
2.10.3
2.10.3rc1
2.10.4
2.10.4rc1
2.10.5
2.10.5rc1
2.10.6
2.10.6rc1
2.10.7
2.10.7rc1
2.10.8
2.10.8rc1
2.10.9
2.10.9rc1
2.10.10
2.10.10rc1
2.10.11
2.10.11rc1
2.10.12
2.10.12rc1
2.10.13
2.10.13rc1
2.10.14
2.10.14rc1
2.10.15
2.10.15rc1
2.10.16
2.10.16rc1
2.10.17
2.10.17rc1

Additional context

Just a thanks 🧇 for making this!

@timfallmk timfallmk added the bug Something isn't working label Apr 13, 2023
@amrox
Copy link
Owner

amrox commented May 2, 2023

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 [email protected]

Note that ansible seems to have changed from ansible-base to ansible-core in newer versions 🤷

@timfallmk
Copy link
Author

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 [email protected]
No such plugin: ansible-core

or

asdf install ansible-base [email protected]
python
python 3.11.3 is already installed
Requirement already satisfied: setuptools in ./.asdf/installs/ansible-base/[email protected]/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/[email protected]/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

@philBrown
Copy link

Totally broken with Python 3.12. The minimum version of Ansible supporting that is 2.16.

See ansible/ansible#81946 and the support matrix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants