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

module 'platform' has no attribute 'linux_distribution' #20

Closed
nicoTrombon opened this issue Jul 9, 2023 · 0 comments
Closed

module 'platform' has no attribute 'linux_distribution' #20

nicoTrombon opened this issue Jul 9, 2023 · 0 comments

Comments

@nicoTrombon
Copy link

When using python 3.8 or higher, it seems there is an issue with the package platform. As per this SO answer it seems the package.linux_distribution was deprecated starting with Python 3.5.

This makes the line 9 of settings.py:
from platform import mac_ver, win32_ver, linux_distribution, system

fail with the following error message:
ImportError: cannot import name 'linux_distribution' from 'platform'

An alternative seems to be the usage of the distro package.

I can make a PR if you are ok

@nicoTrombon nicoTrombon reopened this Jul 9, 2023
@nicoTrombon nicoTrombon closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant