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

AttributeError: module 'platform' has no attribute 'dist' (Python 3.8) #14

Open
x24git opened this issue Mar 7, 2020 · 0 comments
Open

Comments

@x24git
Copy link

x24git commented Mar 7, 2020

dist function is deprecated on platform module in 3.5 and removed in 3.8.

Collecting wix.py
Using cached WiX.Py-0.1.0.tar.gz (1.6 MB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\username\Anaconda3\envs\py38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\setup.py'"'"'; file='"'"'C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\pip-egg-info'
cwd: C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py
Complete output (11 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\setup.py", line 29, in
import dependencies
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\dependencies.py", line 23, in
from utils.dist import *
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\utils\dist.py", line 108, in
SYSFACTS = SystemFacts()
File "C:\Users\username\AppData\Local\Temp\pip-install-fhul34d0\wix.py\utils\dist.py", line 78, in init
self.family, self.version = platform.dist()[:2]
AttributeError: module 'platform' has no attribute 'dist'

x24git added a commit to x24git/wixpy that referenced this issue Mar 7, 2020
- Update to use distro package to get Linux Distribution information
- Add distro to package dependencies
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