sagemath / sage-patchbot

Sage Patchbot
https://www.sagemath.org
Other
8 stars 17 forks source link

Error in python 3.8 #140

Closed miguelmarco closed 4 years ago

miguelmarco commented 4 years ago

Trying to run a patchbot in arch linux, I get the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/patchbot/.local/lib/python3.8/site-packages/sage_patchbot/patchbot.py", line 357, in <module>
    class Patchbot(object):
  File "/home/patchbot/.local/lib/python3.8/site-packages/sage_patchbot/patchbot.py", line 405, in Patchbot
    "machine": machine_data(),
  File "/home/patchbot/.local/lib/python3.8/site-packages/sage_patchbot/patchbot.py", line 253, in machine_data
    dist_name, dist_version, dist_id = platform.linux_distribution()
AttributeError: module 'platform' has no attribute 'linux_distribution'

Apparently, the version of the platformmodule in python 3.8m doesn't include the linux_distribution function.

fchapoton commented 4 years ago

Thanks for your message. I have fixed that in the latest master branch.