-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Missing dependency 'distro' in Python 3.8 or higher #55029
Comments
@roaldnefs Thanks for the report. |
Add Python 3.8 job to Travis CI, which requires installing distro because there is still a bug in SaltStack with Python 3.8: saltstack/salt#55029 This will also add pip cache and lower depth git clone in the Travis configuration. Signed-off-by: Roald Nefs <roald@warpnet.nl>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Don't think this issue should be closed as I'm still able to reproduce the issue using |
Thank you for updating this issue. It is no longer marked as stale. |
@roaldnefs The correct spec file used for salt resides in salt-pack-py3, for example: https://github.com/saltstack/salt-pack-py3/blob/develop/file_roots/pkg/salt/2019_2_2/rhel8/spec/salt.spec I have a task to update the spec file current in salt itself for the latest version used, and now with Python 2 EOL'd, perhaps the issue of which to use is resolved. see #50770 |
Any chance of fixing this for FreeBSD 12.1? During handling of the above exception, another exception occurred: Traceback (most recent call last): Stop. Please advise. TIA! |
@tommyhp2, as a workaround you can install |
@roaldnefs Currently Salt does not fully support Python 3.8, this is being addressed in the Sodium release. The distro package will be supplied as part of packaging at that time. It is currently being provided with the RHEL 8 Py 3 support and is a dependency with Debian 10, that is, it is loaded on Debian 10 by Salt. Note: Python 3 was only fully support in version 2018.3.0 or higher. If this information is sufficient, please consider closing this issue |
@dmurphy18 Thank you for the clarification. I was thinking of testing out salt capabilities. With the python2 at EOL, I'd figure to try with 3.8 and see what happens. I've already file a bug report at FreeBSD and it's addressed accordingly. Thank you. |
Thanks @dmurphy18 for your reply! Closing this issue as Python 3.8 isn't officially supported. |
@roaldnefs Could you re-open this issue? It's now affecting all builds of the |
I've reopened the issue as it is now affecting builds of the |
@roaldnefs And it looks like it's been fixed by the latest commits that were merged since then! I got some advice from one of the devs about a commit that might resolve the issue. As I was adjusting the bootstrap to use another source for building Salt, I found that the original failures were now passing. So something between 788834c...9673de4. |
@myii, thanks for the feedback. Closing this issue again. |
the dependency is still missing. |
dependency is still missing |
The LIC_FILES_CHKSUM provided by the upstream salt recipe does not match the checksum of the downloaded license file. Update to the matching checksum. Add missing python3-distro as a build time dependency. This dependency is required in Python 3.8 and above. Existing salt [issue](saltstack/salt#55029). Signed-off-by: Shruthi Ravichandran <shruthi.ravichandran@ni.com>
The LIC_FILES_CHKSUM provided by the upstream salt recipe does not match the checksum of the downloaded license file. Update to the matching checksum. Add missing python3-distro as a build time dependency. This dependency is required in Python 3.8 and above. Existing salt [issue](saltstack/salt#55029). Signed-off-by: Shruthi Ravichandran <shruthi.ravichandran@ni.com>
The LIC_FILES_CHKSUM provided by the upstream salt recipe does not match the checksum of the downloaded license file. Update to the matching checksum. Add missing python3-distro as a build time dependency. This dependency is required in Python 3.8 and above. Existing salt [issue](saltstack/salt#55029). Signed-off-by: Shruthi Ravichandran <shruthi.ravichandran@ni.com>
The LIC_FILES_CHKSUM provided by the upstream salt recipe does not match the checksum of the downloaded license file. Update to the matching checksum. Add missing python3-distro as a build time dependency. This dependency is required in Python 3.8 and above. Existing salt [issue](saltstack/salt#55029). Signed-off-by: Shruthi Ravichandran <shruthi.ravichandran@ni.com>
Description of Issue
Python's original
platform.linux_distribution
function will be removed in Python 3.8. In the #50822 and #51541, this is fixed by using thedistro
library on anImportError
in bothsalt/version.py
andsalt/grains/core.py
. Thedistro
library isn't mentioned as a dependency and therefore the install ofsalt>=2017.7.0
will result in an error.Snippet importing the
distro
library:Setup
python>=3.8
salt>=2017.7.0
Steps to Reproduce Issue
The issue can be reproduced by installing Salt (via pip) in a Docker Python 3.8 container, by running the following command:
docker run -it python:3.8 /bin/bash -c "pip install salt"
This results in the following error message:
Affected Versions
Quick test shows that Salt
2017.7.0
and higher are affected when being installed on Python 3.8.The text was updated successfully, but these errors were encountered: