-
Notifications
You must be signed in to change notification settings - Fork 5
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
Python3.8 #2
Comments
Hi, thanks for the heads up. I'll fix this soon. |
i already did a fix. just cannot open pull request. |
This is basically what i did + removing
|
Hi, an other simple Solution is to change the code as followed:
|
I just also ran into that problem, can you fix that @winem ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello everybody,
this script won't work on python3.8 onward anymore. The function
platform.linux_distribution()
was deprecated with python 3.5 and removed with 3.8. The functionplatform.uname()
is not really helpful for CentOS/RedHat Distributions, so i went the route of/etc/os-release
and parsing the relevant part.It is tested and works for Python 3.6.9 (on Ubuntu 18.04.5) and Python 3.8.5 (on Ubuntu 20.04.1) as well as CentOS 8.2.2004 with Python 3.8.0.
The text was updated successfully, but these errors were encountered: