You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: