Reminders icon indicating copy to clipboard operation
Reminders copied to clipboard

[Bug]: Crash with "TypeError: unsupported operand type(s) for +: 'int' and 'str'" on startup on Fedora 41

Open visadb opened this issue 1 year ago • 0 comments

Package

Flathub

Distribution

Fedora 41

Describe the bug

I've installed Reminders with flatpak. When running Reminders from Gnome shell (Windows key, write Reminders, press Enter), I expect Reminders app window to open. Instead, nothing happens. Used to work on Fedora 40.

Running from command line using flatpak run produces a Python stack trace and app does not open. See Logs section for stack trace.

To Reproduce

  1. Install Fedora 41 and update all packages
  2. Open a shell in a terminal emulator
  3. Install Reminders with flatpak: flatpak install io.github.dgsasha.Remembrance
  4. Run Reminders with flatpak: flatpak run io.github.dgsasha.Remembrance

Logs

$ flatpak info io.github.dgsasha.Remembrance   

Reminders - Set reminders for yourself

          ID: io.github.dgsasha.Remembrance
         Ref: app/io.github.dgsasha.Remembrance/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 4.0
     License: GPL-3.0-or-later
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 16.6 MB
     Runtime: org.gnome.Platform/x86_64/46
         Sdk: org.gnome.Sdk/x86_64/46

      Commit: 0fb5401d862d2b325cd232dab6218d9699977254aeabfac65999f99be4a7a789
      Parent: 8871d3506318cccac140e16746914d5dcf9d90c3db8ff81ea7d9e5531aa3ac7d
     Subject: Update Remembrance runtime to 46 (d4d4c025)
        Date: 2024-06-19 07:35:13 +0000


$ flatpak run io.github.dgsasha.Remembrance
2025-01-16 12:59:52,444 - remembrance - INFO - application:connect_to_service - Connected to service
Traceback (most recent call last):
  File "/app/lib/python3.11/site-packages/remembrance/browser/application.py", line 86, in do_command_line
    self.do_activate()
  File "/app/lib/python3.11/site-packages/remembrance/browser/application.py", line 144, in do_activate
    self.win = MainWindow(self.page, self)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/remembrance/browser/main_window.py", line 147, in __init__
    self.unpack_reminders(reminders)
  File "/app/lib/python3.11/site-packages/remembrance/browser/main_window.py", line 601, in unpack_reminders
    self.display_reminder(**reminder)
  File "/app/lib/python3.11/site-packages/remembrance/browser/main_window.py", line 640, in display_reminder
    reminder = Reminder(
               ^^^^^^^^^
  File "/app/lib/python3.11/site-packages/remembrance/browser/reminder.py", line 76, in __init__
    self.set_labels()
  File "/app/lib/python3.11/site-packages/remembrance/browser/reminder.py", line 268, in set_labels
    self.set_repeat_label()
  File "/app/lib/python3.11/site-packages/remembrance/browser/reminder.py", line 254, in set_repeat_label
    self.win.get_repeat_label(
  File "/app/lib/python3.11/site-packages/remembrance/browser/main_window.py", line 272, in get_repeat_label
    type_name = repeat_frequency + ' ' + _('minutes')
                ~~~~~~~~~~~~~~~~~^~~~~
TypeError: unsupported operand type(s) for +: 'int' and 'str'

Additional context

No response

visadb avatar Jan 16 '25 11:01 visadb