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

Fails to start, No module named 'dbus.mainloop.glib' #691

Closed
mizzunet opened this issue Dec 13, 2021 · 4 comments
Closed

Fails to start, No module named 'dbus.mainloop.glib' #691

mizzunet opened this issue Dec 13, 2021 · 4 comments

Comments

@mizzunet
Copy link

mizzunet commented Dec 13, 2021

Hamster fails to start on Arch Linux.

 ~  hamster 
Traceback (most recent call last):
  File "/usr/bin/hamster", line 40, in <module>
    from hamster import client, reports
  File "/usr/lib/python3.9/site-packages/hamster/client.py", line 33, in <module>
    from hamster.lib.dbus import (
  File "/usr/lib/python3.9/site-packages/hamster/lib/dbus.py", line 3, in <module>
    from dbus.mainloop.glib import DBusGMainLoop as DBusMainLoop
ModuleNotFoundError: No module named 'dbus.mainloop.glib'

python-dbus has been installed

@mwilck
Copy link
Contributor

mwilck commented Dec 14, 2021

Missing the python 3.9 dbus module, perhaps?

@mwilck
Copy link
Contributor

mwilck commented Dec 14, 2021

Works here (openSUSE Tumbleweed):

Python 3.9.9 (main, Nov 17 2021, 09:50:59) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>> print(dbus)
<module 'dbus' from '/usr/lib/python3.9/site-packages/dbus/__init__.py'>
>>> from dbus.mainloop.glib import DBusGMainLoop as joe
>>> print(joe)
<built-in function DBusGMainLoop>

@mizzunet
Copy link
Author

It has been resolved, it seems it's related to the python update.

https://www.reddit.com/r/archlinux/comments/rf6c84/psa_python_310_is_in_core_rebuild_your_aur/

So all AUR packages installed should be rebuilt.

@mwilck
Copy link
Contributor

mwilck commented Dec 14, 2021

Thanks for the feedback!

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

2 participants