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

role:python: On RHEL 8+, don't install python3. Instead install python38 or python39 explicitly #62

Closed
markuslf opened this issue Jun 17, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@markuslf
Copy link
Member

markuslf commented Jun 17, 2022

Otherwise Python 3.6 is installed, which might be too old nowadays, and you run into problems like that described in Linuxfabrik/monitoring-plugins#587

Python 3.9 preferred.

If multiple Python versions are installed in parallel, set python3 to python3.8 or python3.9.

@markuslf
Copy link
Member Author

Also we get this sometimes if using Python 3.6: /usr/local/lib/python3.6/site-packages/smbprotocol/connection.py:18: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.

@markuslf markuslf added the enhancement New feature or request label Jun 17, 2022
@markuslf
Copy link
Member Author

Also install python38-psutil or python39-psutil for the monitoring-plugins.

@markuslf markuslf changed the title role:python: On RHEL, don't install python3. Instead install python38 or python39 role:python: On RHEL 8+, don't install python3. Instead install python38 or python39 Jun 24, 2022
@markuslf markuslf changed the title role:python: On RHEL 8+, don't install python3. Instead install python38 or python39 role:python: On RHEL 8+, don't install python3. Instead install python38 or python39 explicitly Jun 24, 2022
@NavidSassan
Copy link
Member

I would suggest that the role tries to install the latest python verison which is available in the repos. The target of alternatives should be a variable, with possible options latest or a fixed version.

@NavidSassan
Copy link
Member

according to https://peps.python.org/pep-0602/#long-term-support-releases there are no explicit LTS versions

@NavidSassan
Copy link
Member

we will keep using just python3, as setting the default to python3.9 makes the use of ansible a lot harder. instead we will package the monitoring-plugins with python and all required modules.

@markuslf
Copy link
Member Author

The monitoring-plugins should be deployed via .rpm/.deb per default. This makes everything a lot easier than before - so we also only need to install python when we really need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants