Public bug reported:
System: Ubuntu: 24.04
The locale.format() function has been deprecated in Python 3.7 and
removed in 3.12. Instead locale.format_string() can be used in the
indicator.py file by a simple rename. Otherwise this error occurs when
launching indicator-cpufreq:
Traceback (most recent call last):
File "/usr/bin/indicator-cpufreq", line 85, in <module>
ind = MyIndicator(options.show_frequency)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/indicator_cpufreq/indicator.py", line
78, in __init__
menu_item = Gtk.RadioMenuItem.new_with_label(group,
readable_frequency(freq))
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/indicator_cpufreq/indicator.py", line
34, in readable_frequency
label = _("%s GHz") % locale.format(_("%.2f"), f / 1.0e6)
^^^^^^^^^^^^^
AttributeError: module 'locale' has no attribute 'format'. Did you mean:
'_format'?
** Affects: indicator-cpufreq (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2063547
Title:
Deprecated locale.format() in indicator.py
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-cpufreq/+bug/2063547/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs