Invalid version error when launching from a repository checked into Git
This occurs when launching Gajim from a panel icon or from a shell where the current directory is a Git repository (in my case, my home directory; "6e124732fa52" is the hash of the latest commit in that repository) and then trying to open the plugin manager (and IIRC also on startup). I installed Gajim from the project's Debian repositories, using the gajim-default-nightly package.
Versions
- OS: Debian GNU/Linux bookworm/sid
- GTK Version: 3.24.30
- PyGObject Version: 3.42.0
- GLib Version : 2.70.0
- python-nbxmpp Version: 3.0.0-dev1
- Gajim Version: 1.4.0-dev1+6a3fda13+6e124732fa52
Traceback
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/data/plugins/plugin_installer/plugin_installer.py", line 161, in _on_download_plugin_list_finished
plugin_list = parse_manifests_zip(data)
File "/usr/lib/python3/dist-packages/gajim/data/plugins/plugin_installer/utils.py", line 149, in parse_manifests_zip
if not plugin.has_valid_version():
File "/usr/lib/python3/dist-packages/gajim/data/plugins/plugin_installer/utils.py", line 91, in has_valid_version
gajim_version = V(gajim.__version__)
File "/usr/lib/python3/dist-packages/packaging/version.py", line 266, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '1.4.0-dev1+6a3fda13e+6e124732fa52'