manatools / dnfdragora

dnfdragora is a dnf frontend based on libyui abstraction
GNU General Public License v3.0
137 stars 41 forks source link

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable #160

Closed gorkoda1 closed 4 years ago

gorkoda1 commented 4 years ago

I was trying to figure out why dnfdragora's tray icon wasn't appearing in my taskbar (on MATE) so I enabled logging and got the following output on console OS info: Fedora 32 (MATE spin) Python: 3.8.5 ` Try reading configuration file

From ./dnfdragora.yaml

Finally read user settings from /home/censored/.config/dnfdragora.yaml

Logging into /home/censored, debug mode is enabled

Exception in thread Thread-1:

Traceback (most recent call last):

File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner

self.run()

File "/usr/lib64/python3.8/threading.py", line 870, in run

self._target(*self._args, **self._kwargs)

File "/usr/lib/python3.8/site-packages/dnfdragora/updater.py", line 302, in __update_loop

self.__notifier.show()

File "/usr/lib/python3.8/site-packages/notify2.py", line 222, in show

nid = dbus_iface.Notify(appname,       # app_name       (spec names)

File "/usr/lib64/python3.8/site-packages/dbus/proxies.py", line 72, in __call__

return self._proxy_method(*args, **keywords)

File "/usr/lib64/python3.8/site-packages/dbus/proxies.py", line 141, in __call__

return self._connection.call_blocking(self._named_service,

File "/usr/lib64/python3.8/site-packages/dbus/connection.py", line 652, in call_blocking

reply_message = self.send_message_with_reply_and_block(

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable

` It is notable that dnfdaemon is a service and not a socket on my system, so this could possilbly be the cause.

anaselli commented 4 years ago

Which version of pynotify are you using?

gorkoda1 commented 4 years ago

sudo dnf info python3-notify2 outputs the following Name : python3-notify2 Version : 0.3.1 Release : 7.fc32 Architecture : noarch Size : 32 k Source : python-notify2-0.3.1-7.fc32.src.rpm Repository : @System From repo : fedora Summary : Python interface to DBus notifications URL : https://bitbucket.org/takluyver/pynotify2 License : BSD Description : This is a pure-python replacement for notify-python, using : python-dbus to communicate with the notifications server : directly. : : It's compatible with Python 2 and 3, and its callbacks can work : with Gtk or Qt applications.

anaselli commented 4 years ago

Thanks but I was wrong, sorry I meant which version of pystray are you using? That's because new version has its internal notifier, and that seems make dnfdragora crashing (hopefully fixed on master). Thanks again for your report.

anaselli commented 4 years ago

I did a search and seems tha fedora 32 is shipping new 0.16.0. That is supported by next dnfdragora 2.1.0. So I suggest you to downgrade it to old 0.14.3 waiting for new dnfdragora that should be released very soon.

gorkoda1 commented 4 years ago

OK thank you.

anaselli commented 4 years ago

As said this issue is fixed as written into Changes. Thanks for the report