throttled icon indicating copy to clipboard operation
throttled copied to clipboard

'ImportError: cannot import name "GLib" from "gi.repository"'

Open LinuxOnTheDesktop opened this issue 1 year ago • 0 comments

The problem I report owes at least largely to a somewhat botched upgrade that I made to my OS; but perhaps you'd be willing to help with these Python woes. (Perhaps too Python should take some of the blame.)

So: what's wrong here?

Jul 31 01:34:24 x1 systemd[1]: Started throttled.service - Stop Intel throttling.
Jul 31 01:34:24 x1 python3[31687]: Traceback (most recent call last):
Jul 31 01:34:24 x1 python3[31687]:   File "/opt/throttled/throttled.py", line 23, in <module>
Jul 31 01:34:24 x1 python3[31687]:     from gi.repository import GLib
Jul 31 01:34:24 x1 python3[31687]: ImportError: cannot import name 'GLib' from 'gi.repository' (/opt/throttled/venv/lib/python3.12/site-packages/gi/repository/__init__.py)
Jul 31 01:34:24 x1 systemd[1]: throttled.service: Main process exited, code=exited, status=1/FAILURE
Jul 31 01:34:24 x1 systemd[1]: throttled.service: Failed with result 'exit-code'.

Thanks!

My (new) OS: Mint 22 Cinnamon - based upon Ubuntu 24.04.

LinuxOnTheDesktop avatar Jul 31 '24 00:07 LinuxOnTheDesktop