Mailinglist Archive: opensuse (4498 mails)

< Previous Next >
[opensuse] Problems with dbus-python
  • From: Torvald Bringsvor <bringsvor@xxxxxxxxx>
  • Date: Thu, 23 Nov 2006 10:32:23 +0100 (CET)
  • Message-id: <285794.48277.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>

Hi.

I think there is some problem with the dbus python
libraries in opensuse 10.2 beta2.

I have these rpms installed:
python-2.5-11
dbus-1-python-0.71-25
dbus-1-0.95-4

When I try to follow the python dbus tutorial it fails
at the very start:

Python 2.5 (r25:51908, Oct 23 2006, 17:59:17)
[GCC 4.1.2 20061018 (prerelease) (SUSE Linux)] on
linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import dbus
>>> d = dbus.SessionBus()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/lib/python2.5/site-packages/dbus/_dbus.py", line
266, in __new__
return Bus.__new__(cls, Bus.TYPE_SESSION,
use_default_mainloop, private)
File
"/usr/lib/python2.5/site-packages/dbus/_dbus.py", line
99, in __new__
bus._connection = dbus_bindings.bus_get(bus_type,
private)
File "dbus_bindings.pyx", line 1693, in
dbus_bindings.bus_get
TypeError: exceptions must be strings, classes, or
instances, not type

However this succeeds:

>>> d = dbus.SystemBus()
>>>

Have any of you tried this?

Torvald



--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups