Description of problem: gdeploy crashes on start with ImportError: cannot import name 'dist' from 'platform' (/usr/lib64/python3.9/platform.py) Version-Release number of selected component: gdeploy-3.0.0-8.20200525git05d894b.fc33 Additional info: reporter: libreport-2.14.0 cmdline: /usr/bin/python3 -s /usr/bin/gdeploy -c gdeploy.conf crash_function: module exception_type: ImportError executable: /usr/bin/gdeploy interpreter: python3-3.9.1-2.fc33.x86_64 kernel: 5.10.16-200.fc33.x86_64 runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: gdeploy:31:<module>:ImportError: cannot import name 'dist' from 'platform' (/usr/lib64/python3.9/platform.py) Traceback (most recent call last): File "/usr/bin/gdeploy", line 31, in <module> from platform import dist ImportError: cannot import name 'dist' from 'platform' (/usr/lib64/python3.9/platform.py) Local variables in innermost frame: __name__: '__main__' __doc__: None __package__: None __loader__: <_frozen_importlib_external.SourceFileLoader object at 0x7f56b1270bb0> __spec__: None __annotations__: {} __builtins__: <module 'builtins' (built-in)> __file__: '/usr/bin/gdeploy' __cached__: None argparse: <module 'argparse' from '/usr/lib64/python3.9/argparse.py'> os: <module 'os' from '/usr/lib64/python3.9/os.py'> shutil: <module 'shutil' from '/usr/lib64/python3.9/shutil.py'> subprocess: <module 'subprocess' from '/usr/lib64/python3.9/subprocess.py'> sys: <module 'sys' (built-in)> time: <module 'time' (built-in)> OrderedDict: <class 'collections.OrderedDict'> global_vars: <module 'gdeploylib.global_vars' from '/usr/lib/python3.9/site-packages/gdeploylib/global_vars.py'> gdeploy_logging: <module 'gdeploylib.gdeploy_logging' from '/usr/lib/python3.9/site-packages/gdeploylib/gdeploy_logging.py'> log_event: <function log_event at 0x7f56b0c679d0> Global: <class 'gdeploylib.global_vars.Global'> yaml_writer: <module 'gdeploylib.yaml_writer' from '/usr/lib/python3.9/site-packages/gdeploylib/yaml_writer.py'> defaults: <module 'gdeploylib.defaults' from '/usr/lib/python3.9/site-packages/gdeploylib/defaults.py'> helpers: <module 'gdeploylib.helpers' from '/usr/lib/python3.9/site-packages/gdeploylib/helpers.py'> Helpers: <class 'gdeploylib.helpers.Helpers'> YamlWriter: <class 'gdeploylib.yaml_writer.YamlWriter'> call_features: <function call_features at 0x7f56b0c07040> add_feature: <function add_feature at 0x7f56b0aad700> gdeploylib: <module 'gdeploylib' from '/usr/lib/python3.9/site-packages/gdeploylib/__init__.py'> call_core_functions: <function call_core_functions at 0x7f56b0aad8b0>
Created attachment 1757544 [details] File: backtrace
Created attachment 1757545 [details] File: cgroup
Created attachment 1757546 [details] File: cpuinfo
Created attachment 1757547 [details] File: environ
Created attachment 1757548 [details] File: mountinfo
Created attachment 1757549 [details] File: namespaces
Created attachment 1757550 [details] File: open_fds
Created attachment 1757555 [details] A patch After changing the line "from platform import dist" to an attempt to import from platform and, if it fails, from distutils, gdeploy works (at least starts) as expected. Please consider applying.
This message is a reminder that Fedora 33 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 33 on 2021-11-30. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '33'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 33 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 33 changed to end-of-life (EOL) status on 2021-11-30. Fedora 33 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.