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

Using pyinfo.info_as_html() get error on python 3.8.1 working fine on 3.6.8 #1

Open
cballew opened this issue Jan 20, 2020 · 0 comments · May be fixed by #2
Open

Using pyinfo.info_as_html() get error on python 3.8.1 working fine on 3.6.8 #1

cballew opened this issue Jan 20, 2020 · 0 comments · May be fixed by #2

Comments

@cballew
Copy link

cballew commented Jan 20, 2020

10.88.0.1 - - [20/Jan/2020 00:14:07] "GET /python-hello-world/health HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/flask/app.py", line 2463, in call
return self.wsgi_app(environ, start_response)
File "/usr/lib/python3.8/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.8/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise
raise value
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3.8/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/app/app.py", line 14, in info
return pyinfo.info_as_html()
File "/usr/lib/python3.8/site-packages/pyinfo/_pyinfo.py", line 240, in info_as_html
info = python_info()
File "/usr/lib/python3.8/site-packages/pyinfo/_pyinfo.py", line 49, in python_info
data['System information'] = collect_system_info()
File "/usr/lib/python3.8/site-packages/pyinfo/_pyinfo.py", line 73, in collect_system_info
if platform.dist()[0] != '' and platform.dist()[1] != '':
AttributeError: module 'platform' has no attribute 'dist'
1

platform Linux latest stable alpine

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

Successfully merging a pull request may close this issue.

1 participant