[PyQt] pb with dbus support

Jean-Baptiste BUTET ashashiwa at gmail.com
Mon Jan 21 21:11:16 GMT 2008


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 ?


clear skies.




-- 
http://astrolix.org
association des linuxiens astronomes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080121/b39ad4e3/attachment.html


More information about the PyQt mailing list