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

[rockylinux-8] python3 incompatible with latest ansible #470

Open
wookietreiber opened this issue Jan 29, 2025 · 0 comments · May be fixed by #472
Open

[rockylinux-8] python3 incompatible with latest ansible #470

wookietreiber opened this issue Jan 29, 2025 · 0 comments · May be fixed by #472
Labels
bug Something isn't working

Comments

@wookietreiber
Copy link

$ docker run --rm -it ghcr.io/hspaans/molecule-containers:rockylinux-8 python3 --version
Python 3.6.8

This get's installed with the GitHub action:

Successfully installed Jinja2-3.1.5 MarkupSafe-3.0.2 PyYAML-6.0.2 ansible-11.2.0 ansible-compat-25.1.1 ansible-core-2.18.2 attrs-25.1.0 bracex-2.5.post1 certifi-2024.12.14 cffi-1.17.1 charset-normalizer-3.4.1 click-8.1.8 click-help-colors-0.9.4 cryptography-44.0.0 distro-1.9.0 docker-7.1.0 enrich-1.2.7 idna-3.10 jsonschema-4.23.0 jsonschema-specifications-2024.10.1 markdown-it-py-3.0.0 mdurl-0.1.2 molecule-25.2.0 molecule-plugins-23.7.0 packaging-24.2 pluggy-1.5.0 pycparser-2.22 pygments-2.19.1 referencing-0.36.2 requests-2.32.3 resolvelib-1.0.1 rich-13.9.4 rpds-py-0.22.3 selinux-0.3.0 subprocess-tee-0.4.2 typing-extensions-4.12.2 urllib3-2.3.0 wcmatch-10.0

The error I'm getting is:

SyntaxError: future feature annotations is not defined

I think the python version shipping with the container is too old for the latest ansible version. From checking dnf search python3 the latest python version that can be installed is dnf install python3.12, molecule can then be configured to use /usr/bin/python3.12 if not detected automatically.

@wookietreiber wookietreiber added the bug Something isn't working label Jan 29, 2025
@wookietreiber wookietreiber linked a pull request Jan 29, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant