Hi,
I want to start qarte-5.1 on Fedora 37, but the startup aborts
with the following error message:
$ qarte -d
16:06:00: INFO - qarte Qarte-5.1.0
16:06:00: INFO - qarte Python 3.11.0rc1 on
Linux-5.19.1-300.fc37.x86_64-x86_64-with-glibc2.36
16:06:00: INFO - qarte File system encoding: utf-8
16:06:00: INFO - qarte System encoding: utf-8
/usr/bin/qarte:71: DeprecationWarning: Use setlocale(), getencoding() and getlocale()
instead
logger.info("Locale encoding: {0}".format(locale.getdefaultlocale()))
16:06:00: INFO - qarte Locale encoding: ('de_DE', 'UTF-8')
QSocketNotifier: Can only be used with threads started with QThread
Traceback (most recent call last):
File "/usr/bin/qarte", line 118, in <module>
from core import Core
File "/usr/share/qarte/core.py", line 23, in <module>
gettext.install('qarte', LOC_PATH, True)
TypeError: install() takes from 1 to 2 positional arguments but 3 were given
This tells you that the quarte code calls gettext's install function with too many
(non-kw) arguments. Indeed:
"Changed in version 3.11: names is now a keyword-only parameter."
(
https://docs.python.org/3.11/library/gettext.html#gettext.install)
I found no upstream repo or such (and did not go through unpacking the srpm). Maybe they
are aware of this.
In the line above, `names=True` may solve the problem, but from the doc I don't even
think that True is a valid choice here. They may have missed the removal of the `codeset`
parameter which used to be in slot 3 before 3.10.