Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LinuxOnTheDesktop opened this issue Jul 31, 2024 · 0 comments
Open

Comments

@LinuxOnTheDesktop
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant