[Bug 221342] New: dbus python bindings broken?
https://bugzilla.novell.com/show_bug.cgi?id=221342 Summary: dbus python bindings broken? Product: openSUSE 10.2 Version: Beta 2 plus Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: thoenig@novell.com ReportedBy: lnussel@novell.com QAContact: qa@suse.de If I try to mount a device I don't have permission to mount halmount dies instead of catching the exception. I don't have much clue about this stuff, is halmount broken or the python bindings (it worked on 10.1)? Invoking the method via dbus-send works fine.
halmount /dev/hda7 Traceback (most recent call last): File "/usr/bin/halmount", line 318, in <module> ret = m.mount(name, dest, options.fstype, opt) File "/usr/bin/halmount", line 180, in mount dbus_interface="org.freedesktop.Hal.Device.Volume") File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 25, in __call__ ret = self._proxy_method (*args, **keywords) File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 102, in __call__ reply_message = self._connection.send_with_reply_and_block(message, timeout) File "dbus_bindings.pyx", line 456, in dbus_bindings.Connection.send_with_reply_and_block TypeError: exceptions must be strings, classes, or instances, not type
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221342 thoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |mkoenig@novell.com ------- Comment #1 from thoenig@novell.com 2006-11-15 09:29 MST ------- Matthias was working on that. Matthias, how far did you get when investigating? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221342 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|mkoenig@novell.com | ------- Comment #2 from mkoenig@novell.com 2006-11-15 10:09 MST ------- Well, I think I have seen that before, yes. Just an idea: In dbus_bindings.pyx Line 452: if dbus_error_is_set(&error): errormsg = error.message dbus_error_free (&error) raise DBusException, errormsg Type of error.message is char *. Does the string get copied by the next assignment? errormsg is then an argument for DBusException which is defined in line 63: class DBusException(Exception): pass I'm not sure, my Python booke mentions some changes with the Exception stuff. Maybe this is related to http://www.python.org/dev/peps/pep-0352/ ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221342 ------- Comment #3 from thoenig@novell.com 2006-11-15 13:06 MST ------- Yes, good catch Matthias! IANAPE (I am not a Python expert) but it thanks to your pointers I solved that issue within an hour. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221342 thoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Summary|dbus python bindings broken?|Pyrex: not compatible with Python 2.5 Fixed in Milestone|--- |RC 1 ------- Comment #4 from thoenig@novell.com 2006-11-15 13:29 MST ------- Pyrex was not ready for Python 2.5; thus the D-Bus bindings for Python simply could not work either ;-) Submitted fixed Pyrex package to STABLE. Adjusting summary & closing as FIXED. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221342 lnussel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED ------- Comment #6 from lnussel@novell.com 2006-11-16 01:35 MST ------- with dbus-1-python from lodown-thoenig-352 it works fine -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com