Python 3.11 is now the default for FreeBSD 13/14/15 on most architectures. Trying to open the ibus-anthy configuration tool through ibus-setup results in the following error: Traceback (most recent call last): File "/usr/local/share/ibus-anthy/setup/main.py", line 1703, in <module> AnthySetup().run() ^^^^^^^^^^^^ File "/usr/local/share/ibus-anthy/setup/main.py", line 79, in __init__ gettext.bind_textdomain_codeset(DOMAINNAME, 'UTF-8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'gettext' has no attribute 'bind_textdomain_codeset' bind_textdomain_codeset was deprecated since Python 3.8 and is now removed. Removing the function call that throws the error allows the configuration tool to launch normally. This was fixed upstream: https://github.com/ibus/ibus-anthy/commit/c744be610dff270f1c0f0367f809b9df95aeea2d
Hi, the fix you mentioned fixes the problem but what about updating to 1.5.16? It also fixes the other bugs, too. Paula, could you test my patch to update to 1.5.16?
Created attachment 254845 [details] update-to-1.5.16 Here's the patch.
Hi, everything builds well and is working properly on my end. Looks like it's good to go! Thanks for the very quick update.
(In reply to Paula Breton from comment #3) Thanks! Let's wait for the approval from the maintainer for a while.
Hi, all. I've reproduced the same problem on my environment. The latest release works fine with no problem. I've tested the update patch on the following environment: * FreeBSD 14.1-RELEASE with 2024Q4 ports branch. * FreeBSD-current with main ports branch. On FreeBSD-current there is some warnings at the install stage: > ==> Running trigger: glib-schemas.ucl > Compiling glib schemas > Warning: Schema "org.freedesktop.ibus" has path "/desktop/ibus/". Paths starting with "/apps/", "/desktop/" or "/system/" are deprecated. > Warning: Schema "org.freedesktop.ibus.general" has path "/desktop/ibus/general/". Paths starting with "/apps/", "/desktop/" or "/system/" are deprecated. (snip) I think that this warnings are harmless at the moment. To committer: Would you commit the patch?
Created attachment 254897 [details] poudriere testport log on FreeBSD-current with the update patch
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1ab7cc7fb4354a708ce71af86036c75513c225e9 commit 1ab7cc7fb4354a708ce71af86036c75513c225e9 Author: Koichiro Iwao <meta@FreeBSD.org> AuthorDate: 2024-11-01 13:03:10 +0000 Commit: Koichiro Iwao <meta@FreeBSD.org> CommitDate: 2024-11-03 12:39:38 +0000 japanese/ibus-anthy: Update to 1.5.16 This update includes a fix to support Python 3.11+. As the default Python version has been updated to 3.11 on 20240529, this update is needed. PR: 282462 Reported by: Paula Breton <freebsd@breton.xyz> Approved by: WATANABE Kazuhiro <CQG00620@nifty.ne.jp> (maintainer) Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.16 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.15 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.14 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.13 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.12 japanese/ibus-anthy/Makefile | 2 +- japanese/ibus-anthy/distinfo | 6 +++--- japanese/ibus-anthy/pkg-plist | 11 ++++++++++- 3 files changed, 14 insertions(+), 5 deletions(-)
A commit in branch 2024Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8447a507a95bc494f8d9a31dfddc8f2f484d132c commit 8447a507a95bc494f8d9a31dfddc8f2f484d132c Author: Koichiro Iwao <meta@FreeBSD.org> AuthorDate: 2024-11-01 13:03:10 +0000 Commit: Koichiro Iwao <meta@FreeBSD.org> CommitDate: 2024-11-04 01:46:59 +0000 japanese/ibus-anthy: Update to 1.5.16 This update includes a fix to support Python 3.11+. As the default Python version has been updated to 3.11 on 20240529, this update is needed. PR: 282462 Reported by: Paula Breton <freebsd@breton.xyz> Approved by: WATANABE Kazuhiro <CQG00620@nifty.ne.jp> (maintainer) Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.16 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.15 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.14 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.13 Changes: https://github.com/ibus/ibus-anthy/releases/tag/1.5.12 (cherry picked from commit 1ab7cc7fb4354a708ce71af86036c75513c225e9) japanese/ibus-anthy/Makefile | 2 +- japanese/ibus-anthy/distinfo | 6 +++--- japanese/ibus-anthy/pkg-plist | 11 ++++++++++- 3 files changed, 14 insertions(+), 5 deletions(-)
Committed, thank you both!