indicator-cpufreq crashes when logging into desktop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
indicator-cpufreq (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
The error when running from terminal is:
~$ indicator-cpufreq
/usr/lib/
from gi.repository import Gtk
Traceback (most recent call last):
File "/usr/lib/
introspecti
File "/usr/lib/
module = IntrospectionMo
File "/usr/lib/
repository.
gi.RepositoryError: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
from indicator_
File "/usr/lib/
from gi.repository import AppIndicator3 as appindicator
File "/usr/lib/
raise ImportError(e)
ImportError: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded
I do have a solution though, which is by adding to the imports in '/usr/lib/
import gi <<< this line
gi.require_
from gi.repository import GLib
from gi.repository import Gtk
from gi.repository import AppIndicator3 as appindicator
<snip>
The indicator-cpufreq app will launch successfully.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: indicator-cpufreq 0.2.2-0ubuntu3 [modified: usr/lib/
ProcVersionSign
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 21 16:38:54 2022
InstallationDate: Installed on 2021-10-11 (191 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
PackageArchitec
SourcePackage: indicator-cpufreq
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in indicator-cpufreq (Ubuntu): | |
importance: | Undecided → High |
Status changed to 'Confirmed' because the bug affects multiple users.