FS#78388 - [hamster-time-tracker] can not start hamster because of new python 3.11

Attached to Project: Community Packages
Opened by Simon Schäfer (CMon) - Thursday, 04 May 2023, 08:50 GMT
Last edited by Jelle van der Waa (jelly) - Monday, 05 June 2023, 18:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Balló György (City-busz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


In Python 3.11 `bind_textdomain_codeset` has been removed (https://docs.python.org/3/whatsnew/3.11.html#removed), but the current release of hamster still uses it. It has already been fixed on their master version with commit: https://github.com/projecthamster/hamster/commit/b155ad533f45f0bf4f10a290ad5374c805b692e9

Additional info:
Console output:

Traceback (most recent call last):
File "/usr/bin/hamster", line 415, in <module>
File "/usr/lib/python3.11/site-packages/hamster/lib/i18n.py", line 24, in setup_i18n
AttributeError: module 'gettext' has no attribute 'bind_textdomain_codeset'

Steps to reproduce:
1. update arch so you get python 3.11
2. start hamster
This task depends upon

Closed by  Jelle van der Waa (jelly)
Monday, 05 June 2023, 18:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  hamster-time-tracker-3.0.2-5-any.pkg.tar .zst
Comment by Jan (jan-one) - Thursday, 04 May 2023, 09:45 GMT
This issue was already resolved on the project's main branch: https://github.com/projecthamster/hamster/commit/b155ad533f45f0bf4f10a290ad5374c805b692e9
Commenting out line 24 in /usr/lib/python3.11/site-packages/hamster/lib/i18n.py can be a temporary local hack to get hamster to start again.