Bug 2232291

Summary: [abrt] cozy: _fill_window(): whats_new_window.py:58:_fill_window:AttributeError: module 'packaging.version' has no attribute 'LegacyVersion'
Product: [Fedora] Fedora Reporter: Petr Sklenar <psklenar>
Component: cozyAssignee: Artur Frenszek-Iwicki <fedora>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: adscvr, fedora, psklenar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/411fc2e19e0706ecaca4b1d5383fd239bcb6775
Whiteboard: abrt_hash:6ac11bc5106295dafe9f55cc285aff72933611a6;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-28 13:49:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: environ
none
File: namespaces
none
File: backtrace
none
File: cpuinfo
none
File: os_info
none
File: open_fds
none
File: mountinfo none

Description Petr Sklenar 2023-08-16 07:20:21 UTC
Description of problem:
only start

Version-Release number of selected component:
cozy-1.2.1-3.fc38

Additional info:
reporter:       libreport-2.17.10
interpreter:    python3-3.11.3-1.fc38.x86_64
type:           Python3
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-com.github.geigi.cozy-45865.scope
uid:            1000
kernel:         6.2.15-300.fc38.x86_64
executable:     /usr/bin/com.github.geigi.cozy
runlevel:       N 5
reason:         whats_new_window.py:58:_fill_window:AttributeError: module 'packaging.version' has no attribute 'LegacyVersion'
exception_type: AttributeError
cmdline:        /usr/bin/python3 /usr/bin/com.github.geigi.cozy
package:        cozy-1.2.1-3.fc38
comment:        only start
crash_function: _fill_window

Truncated backtrace:
whats_new_window.py:58:_fill_window:AttributeError: module 'packaging.version' has no attribute 'LegacyVersion'

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/cozy/application.py", line 99, in do_activate
    self.app_controller = AppController(self, main_window_builder, self.ui)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/cozy/architecture/singleton.py", line 5, in __call__
    cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/cozy/app_controller.py", line 52, in __init__
    self.whats_new_window: WhatsNewWindow = WhatsNewWindow()
                                            ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/cozy/ui/widgets/whats_new_window.py", line 36, in __init__
    self._fill_window()
  File "/usr/lib/python3.11/site-packages/cozy/ui/widgets/whats_new_window.py", line 58, in _fill_window
    if type(last_launched_version) is version.LegacyVersion:
                                      ^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'packaging.version' has no attribute 'LegacyVersion'

Local variables in innermost frame:
self: <whats_new_window.WhatsNewWindow object at 0x7f708df5e7c0 (WhatsNew at 0x5618c3d25c00)>
last_launched_version: <Version('1.2.0')>

Comment 1 Petr Sklenar 2023-08-16 07:20:25 UTC
Created attachment 1983513 [details]
File: environ

Comment 2 Petr Sklenar 2023-08-16 07:20:27 UTC
Created attachment 1983514 [details]
File: namespaces

Comment 3 Petr Sklenar 2023-08-16 07:20:30 UTC
Created attachment 1983515 [details]
File: backtrace

Comment 4 Petr Sklenar 2023-08-16 07:20:32 UTC
Created attachment 1983516 [details]
File: cpuinfo

Comment 5 Petr Sklenar 2023-08-16 07:20:33 UTC
Created attachment 1983517 [details]
File: os_info

Comment 6 Petr Sklenar 2023-08-16 07:20:35 UTC
Created attachment 1983518 [details]
File: open_fds

Comment 7 Petr Sklenar 2023-08-16 07:20:37 UTC
Created attachment 1983519 [details]
File: mountinfo

Comment 8 Artur Frenszek-Iwicki 2023-08-16 16:10:38 UTC
> package:        cozy-1.2.1-3.fc38
This should be fixed in cozy-1.2.1-4.fc38. Please upgrade the package via "dnf upgrade --enablerepo=updates cozy".
https://bodhi.fedoraproject.org/updates/FEDORA-2023-d99a6bc068

Comment 9 Aoife Moloney 2024-05-28 13:49:58 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 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 Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.