projecthamster / hamster

GNOME time tracker
http://projecthamster.org
GNU General Public License v3.0
1.08k stars 249 forks source link

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

Closed mizzunet closed 2 years ago

mizzunet commented 2 years ago

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 commented 2 years ago

Missing the python 3.9 dbus module, perhaps?

mwilck commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Thanks for the feedback!