classicmenu-indicator crash when launch Ubuntu 23.04

Bug #2017454 reported by Xavier de La Garanderie
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ClassicMenu Indicator
New
Undecided
Unassigned

Bug Description

I have just upgrade my system from Ubuntu 22.10 to 23.04.

The classic menu indicator doesn't work any longer, from classicmenu-indicator package.

When i launch classic menu indicator in command line i get the following message:

root@mdbelinux:~# 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'

I got the same error from a non root account.

How can i fix it?

Thanks for help.
Xavier

Revision history for this message
Drake Drakan (drakelive) wrote :

I have the same problem. My python version is :

$ python3
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

Revision history for this message
1234fedcba (1234fedcba) wrote :

It seems that the function was removed in python 3.10.

I have removed that line (152 in `/usr/lib/python3/dist-packages/classicmenu_indicator/cmindicator.py`) and the classicmenu-indicator seems to work fine now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.