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