Skip to content

Cozy not starting up with error packaging.version.InvalidVersion: Invalid version: 'None' #756

Closed
@waferbit

Description

@waferbit

Bug/Feature description

After installing cozy, I am unable to start it. I get the following error. I get the same error if I install the official one from AUR or the git version (from AUR too).

['/usr/bin/cozy-audiobooks']
10:55:28 [MainThread  ] [applicatio] [INFO ]  ('arch', 'rolling', 'n/a')
10:55:28 [MainThread  ] [applicatio] [INFO ]  Starting up cozy 1.2.1
10:55:28 [MainThread  ] [db        ] [INFO ]  SQLite version: 3.40.1
10:55:28 [Thread-1 (ru] [peewee.sql] [INFO ]  writer received shutdown request, exiting.
10:55:29 [MainThread  ] [applicatio] [INFO ]  libhandy version: 1
handle exception
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/cozy/application.py", line 99, in do_activate
    self.app_controller = AppController(self, main_window_builder, self.ui)
  File "/usr/lib/python3.10/site-packages/cozy/architecture/singleton.py", line 5, in __call__
    cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/cozy/app_controller.py", line 52, in __init__
    self.whats_new_window: WhatsNewWindow = WhatsNewWindow()
  File "/usr/lib/python3.10/site-packages/cozy/ui/widgets/whats_new_window.py", line 36, in __init__
    self._fill_window()
  File "/usr/lib/python3.10/site-packages/cozy/ui/widgets/whats_new_window.py", line 54, in _fill_window
    last_launched_version = version.parse(self.app_settings.last_launched_version)
  File "/usr/lib/python3.10/site-packages/packaging/version.py", line 52, in parse
    return Version(version)
  File "/usr/lib/python3.10/site-packages/packaging/version.py", line 197, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: 'None'

Steps to reproduce

Install cozy through AUR

System Information

  • Operating System: Arch Linux
  • Installation source: AUR (yay)
  • Version of cozy: cozy 1.2.1 (both git and official version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions