Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#47720 - [pidgin] module 'dbus' has no attribute 'Interface'

Attached to Project: Arch Linux
Opened by everytrash (everytrash) - Tuesday, 12 January 2016, 06:38 GMT
Last edited by Evangelos Foutras (foutrelis) - Wednesday, 13 January 2016, 07:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: After updating "pidgin" and "libpurple" to version "2.10.12-1" I got this error message:

user@pc1 ~ % purple-remote getstatusmessage
Traceback (most recent call last):
File "/usr/bin/purple-remote", line 29, in <module>
purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
AttributeError: module 'dbus' has no attribute 'Interface'


user@pc1 ~ % echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus


-- Logs begin at Mon 2015-01-05 09:42:22 CET, end at Mon 2016-01-04 08:42:53 CET. --
Jan 04 07:49:29 pc1 systemd[1]: Started D-Bus System Message Bus.
Jan 04 07:49:30 pc1 dbus[601]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service'
Jan 04 07:49:32 pc1 dbus[601]: [system] Successfully activated service 'org.freedesktop.ColorManager'
Jan 04 07:49:50 pc1 dbus[601]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
Jan 04 07:49:50 pc1 dbus[601]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service'
Jan 04 07:49:50 pc1 dbus[601]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
Jan 04 07:49:50 pc1 dbus[601]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Jan 04 07:49:51 pc1 dbus[601]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jan 04 07:49:51 pc1 dbus[601]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Jan 04 07:49:52 pc1 dbus[601]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Jan 04 07:49:52 pc1 dbus[601]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 04 07:56:59 pc1 systemd[1]: Stopping D-Bus System Message Bus...
Jan 04 07:56:59 pc1 systemd[1]: Stopped D-Bus System Message Bus.
Jan 04 07:56:59 pc1 systemd[1]: Started D-Bus System Message Bus.
Jan 04 07:56:59 pc1 dbus[2649]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Jan 04 07:56:59 pc1 dbus[2649]: [system] Successfully activated service 'org.freedesktop.Avahi'
Jan 04 07:57:55 pc1 dbus[2649]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
Jan 04 07:58:20 pc1 dbus[2649]: [system] Failed to activate service 'org.freedesktop.login1': timed out
Jan 04 07:58:29 pc1 dbus[2649]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Jan 04 07:58:29 pc1 dbus[2649]: [system] Successfully activated service 'org.freedesktop.Avahi'
Jan 04 08:00:00 pc1 dbus[2649]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Jan 04 08:00:00 pc1 dbus[2649]: [system] Successfully activated service 'org.freedesktop.Avahi'
Jan 04 08:07:37 pc1 dbus[2649]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
Jan 04 08:07:37 pc1 dbus[2649]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Jan 04 08:07:37 pc1 dbus[2649]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jan 04 08:07:37 pc1 dbus[2649]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Jan 04 08:13:58 pc1 dbus[2649]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.15" (uid=1000 pid=5074 comm="/usr/bin/python /usr/bin/d-feet ") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination="org.freedesktop
Jan 04 08:16:47 pc1 dbus[2649]: [system] Activating via systemd: service name='org.freedesktop.network1' unit='dbus-org.freedesktop.network1.service'
Jan 04 08:17:12 pc1 dbus[2649]: [system] Failed to activate service 'org.freedesktop.network1': timed out


package version: 2.10.12-1

Steps to reproduce: user@pc1 ~ % purple-remote getstatusmessage
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Wednesday, 13 January 2016, 07:05 GMT
Reason for closing:  Not a bug
Additional comments about closing:  The python-dbus optional dependency is needed for purple-remote and purple-url-handler.
Comment by Evangelos Foutras (foutrelis) - Tuesday, 12 January 2016, 12:27 GMT
What does the following print?

$ python -c 'import dbus; print(dbus.__file__)'

(Should be "/usr/lib/python3.5/site-packages/dbus/__init__.py".)
Comment by Doug Newgard (Scimmia) - Tuesday, 12 January 2016, 15:50 GMT
Guessing this is simply a case of not installing the necessary optional dependency.
Comment by everytrash (everytrash) - Wednesday, 13 January 2016, 06:24 GMT
@Evangelos Foutras
This is the output:

user@pc1 ~ % python -c 'import dbus; print(dbus.__file__)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'dbus' has no attribute '__file__'

@Doug Newgard
What dependency do you mean?

Thanks!
Comment by Doug Newgard (Scimmia) - Wednesday, 13 January 2016, 06:34 GMT
The one pacman told you about when you upgraded.

python-dbus (optional) - for purple-remote and purple-url-handler
Comment by Evangelos Foutras (foutrelis) - Wednesday, 13 January 2016, 06:42 GMT
Since the 'import dbus' statement succeeds, something else is going on here. Some more commands for you to try:

$ type -p python
/usr/bin/python

$ python -c 'import dbus; print(dbus)'
<module 'dbus' from '/usr/lib/python3.5/site-packages/dbus/__init__.py'>
Comment by Doug Newgard (Scimmia) - Wednesday, 13 January 2016, 06:52 GMT
Nope, I tried it without python-dbus installed, that's exactly what I got.
Comment by Evangelos Foutras (foutrelis) - Wednesday, 13 January 2016, 07:05 GMT
Doug tracked it down to python-pyqt5 which installs the file "/usr/lib/python3.5/site-packages/dbus/mainloop/pyqt5.so".

Installing python-dbus (as per the optional dependency) should work; it was just unfortunate that a somewhat misleading error was given due to the above package being installed.

Loading...