Skip to content

Commit

Permalink
Fix checkversion with dev-like PYQT_VERSION_STR
Browse files Browse the repository at this point in the history
The latest arch linux update included for PyQt6 included a version
string of the form '6.7.0.dev2404081550'. This crashed checkversion as
it expects plain integers. We now limit the integer conversion to the
first three parts of the split, which hopefully are always numbers.
  • Loading branch information
karlch committed Apr 15, 2024
1 parent dfdd647 commit 0902c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimiv/checkversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def check_pyqt_version():
"Please install / configure a valid wrapper to run vimiv.\n"
)

pyqt_version = tuple(map(int, PYQT_VERSION_STR.split(".")))
pyqt_version = tuple(map(int, PYQT_VERSION_STR.split(".")[:3]))
if pyqt_version < PYQT_REQUIRED_VERSION:
_exit_version("PyQt", PYQT_REQUIRED_VERSION, pyqt_version)

Expand Down

0 comments on commit 0902c81

Please sign in to comment.