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
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
|
Details
Description:
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> i18n.setup_i18n() File "/usr/lib/python3.11/site-packages/hamster/lib/i18n.py", line 24, in setup_i18n module.bind_textdomain_codeset('hamster','utf8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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
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
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.