Bug 2232291 - [abrt] cozy: _fill_window(): whats_new_window.py:58:_fill_window:AttributeError: module 'packaging.version' has no attribute 'LegacyVersion'
Summary: [abrt] cozy: _fill_window(): whats_new_window.py:58:_fill_window:AttributeErr...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: cozy
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Artur Frenszek-Iwicki
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6ac11bc5106295dafe9f55cc285...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-16 07:20 UTC by Petr Sklenar
Modified: 2023-08-16 16:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: environ (2.28 KB, text/plain)
2023-08-16 07:20 UTC, Petr Sklenar
no flags Details
File: namespaces (171 bytes, text/plain)
2023-08-16 07:20 UTC, Petr Sklenar
no flags Details
File: backtrace (1.41 KB, text/plain)
2023-08-16 07:20 UTC, Petr Sklenar
no flags Details
File: cpuinfo (2.77 KB, text/plain)
2023-08-16 07:20 UTC, Petr Sklenar
no flags Details
File: os_info (734 bytes, text/plain)
2023-08-16 07:20 UTC, Petr Sklenar
no flags Details
File: open_fds (3.09 KB, text/plain)
2023-08-16 07:20 UTC, Petr Sklenar
no flags Details
File: mountinfo (8.74 KB, text/plain)
2023-08-16 07:20 UTC, Petr Sklenar
no flags Details

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


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