classicmenu-dicator 运行失败

classicmenu-dicator 运行失败

在 Ubuntu 24.04(Noble Numbat)上运行时出现以下错误:

$ classicmenu-indicator
Traceback (most recent call last):
  File "/usr/bin/classicmenu-indicator", line 11, in <module>
    load_entry_point('classicmenu-indicator==0.11', 'console_scripts', 'classicmenu-indicator')()
  File "/usr/lib/python3/dist-packages/classicmenu_indicator/cmindicator.py", line 578, in main
    indicator = ClassicMenuIndicator()
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/classicmenu_indicator/cmindicator.py", line 152, in __init__
    gettext.bind_textdomain_codeset(settings.GETTEXT_DOMAIN, 'UTF-8')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'gettext' has no attribute 'bind_textdomain_codeset'

我的python版本是:

$ python3 Python 3.12.3

相关内容