Re: qarte: missing python dependencies ?

2022-08-19 Thread Martin Gansser
Thanks for your hint.
The developer of the program released a patch for this a few minutes ago.
https://bazaar.launchpad.net/~vincent-vandevyvre/qarte/qarte-5/diff/82?context=3
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: qarte: missing python dependencies ?

2022-08-19 Thread Michael J Gruber
> 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 
> from core import Core
>   File "/usr/share/qarte/core.py", line 23, in 
> 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)

> how can i solve this ?
> 
> [1] https://martinkg.fedorapeople.org/Packages/test/qarte-5.1.0-1.fc37.src.rpm
> [2] 
> https://martinkg.fedorapeople.org/Packages/test/python-m3u8-3.1.0-2.fc37

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.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


qarte: missing python dependencies ?

2022-08-19 Thread Martin Gansser
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 
from core import Core
  File "/usr/share/qarte/core.py", line 23, in 
gettext.install('qarte', LOC_PATH, True)
TypeError: install() takes from 1 to 2 positional arguments but 3 were given

how can i solve this ?

[1] https://martinkg.fedorapeople.org/Packages/test/qarte-5.1.0-1.fc37.src.rpm
[2] 
https://martinkg.fedorapeople.org/Packages/test/python-m3u8-3.1.0-2.fc37.src.rpm


Regards
Martin
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue