Bug 1929666 - [abrt] gdeploy: module(): gdeploy:31:<module>:ImportError: cannot import name 'dist' from 'platform' (/usr/lib64/python3.9/platform.py)
Summary: [abrt] gdeploy: module(): gdeploy:31:<module>:ImportError: cannot import name...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: gdeploy
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sachidananda Urs
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:28d32b256481a1dfdb85af2a7e7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-17 12:01 UTC by Vadim Raskhozhev
Modified: 2021-11-30 18:01 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-30 18:01:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.97 KB, text/plain)
2021-02-17 12:02 UTC, Vadim Raskhozhev
no flags Details
File: cgroup (383 bytes, text/plain)
2021-02-17 12:02 UTC, Vadim Raskhozhev
no flags Details
File: cpuinfo (2.24 KB, text/plain)
2021-02-17 12:02 UTC, Vadim Raskhozhev
no flags Details
File: environ (3.88 KB, text/plain)
2021-02-17 12:02 UTC, Vadim Raskhozhev
no flags Details
File: mountinfo (5.88 KB, text/plain)
2021-02-17 12:02 UTC, Vadim Raskhozhev
no flags Details
File: namespaces (172 bytes, text/plain)
2021-02-17 12:02 UTC, Vadim Raskhozhev
no flags Details
File: open_fds (416 bytes, text/plain)
2021-02-17 12:02 UTC, Vadim Raskhozhev
no flags Details
A patch (424 bytes, patch)
2021-02-17 12:33 UTC, Vadim Raskhozhev
iamdexpl: review?
Details | Diff

Description Vadim Raskhozhev 2021-02-17 12:01:58 UTC
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>

Comment 1 Vadim Raskhozhev 2021-02-17 12:02:01 UTC
Created attachment 1757544 [details]
File: backtrace

Comment 2 Vadim Raskhozhev 2021-02-17 12:02:02 UTC
Created attachment 1757545 [details]
File: cgroup

Comment 3 Vadim Raskhozhev 2021-02-17 12:02:03 UTC
Created attachment 1757546 [details]
File: cpuinfo

Comment 4 Vadim Raskhozhev 2021-02-17 12:02:04 UTC
Created attachment 1757547 [details]
File: environ

Comment 5 Vadim Raskhozhev 2021-02-17 12:02:06 UTC
Created attachment 1757548 [details]
File: mountinfo

Comment 6 Vadim Raskhozhev 2021-02-17 12:02:07 UTC
Created attachment 1757549 [details]
File: namespaces

Comment 7 Vadim Raskhozhev 2021-02-17 12:02:08 UTC
Created attachment 1757550 [details]
File: open_fds

Comment 8 Vadim Raskhozhev 2021-02-17 12:33:06 UTC
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.

Comment 9 Ben Cotton 2021-11-04 16:04:31 UTC
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.

Comment 10 Ben Cotton 2021-11-30 18:01:30 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.