[PyQt] pb with dbus support

Phil Thompson phil at riverbankcomputing.com
Mon Jan 21 21:38:37 GMT 2008


On Monday 21 January 2008, Jean-Baptiste BUTET wrote:
> Hi all :)
>
> I'm doing some tests on dbus and have some compatibility pbs.
>
> -> me, with mandriva, python2.5.1 and pyqt4.3.1 under KDE (or IceWm)
> -> 2 of my friends, under ubuntu gutsy and gnome.
>
> this code :
> http://pyfocus.free.fr/upload/dbus_try.py
>
> works 100% perfect on my computer :
> -> launch script
> -> power off a digital camera
> -> "camera name" should prints.
>
>
> like this :
> [jb at localhost trunck]$ python ./dbus_try.py
> received signal: (dbus.String(u':1.35'),)
> /org/freedesktop/Hal/devices/usb_device_4a9_30ee_noserial
> EOS 350D
>
>
> here is error my friends have :
> cyp at packard:~/Bureau$ python dbus_try.py
> received signal: (dbus.String(u':1.169'),)
> received signal: (dbus.String
> (u'/org/freedesktop/Hal/devices/usb_device_4a9_30ee_noserial_if0'),)
> ERROR:dbus.connection:Exception in handler for D-Bus signal:
> Traceback (most recent call last):
>   File "/var/lib/python-support/python2.5/dbus/connection.py", line 210, in
> maybe_handle_message
>     self._handler(*args, **kwargs)
>   File "bdus_essai.py", line 11, in handle_signal
>     hal_manager_obj = self.bus.get_object("org.freedesktop.Hal",
> "/org/freedesktop/Hal/Manager")
>   File "/var/lib/python-support/python2.5/dbus/bus.py", line 240, in
> get_object
>     follow_name_owner_changes=follow_name_owner_changes)
>   File "/var/lib/python-support/python2.5/dbus/connection.py", line 492, in
> _signal_func
>     def _signal_func(self, message):
> KeyboardInterrupt
> received signal: (dbus.String
> (u'/org/freedesktop/Hal/devices/usb_device_4a9_30ee_noserial_usbraw'),)
> /org/freedesktop/Hal/devices/usb_device_4a9_30ee_noserial
> Canon Digital Camera
>
> Any hints ?

What makes you think it is a PyQt problem?

Phil


More information about the PyQt mailing list