After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 674762 - cannot assign method calls to Gio.DBusInterfaceVTable
cannot assign method calls to Gio.DBusInterfaceVTable
Status: RESOLVED DUPLICATE of bug 656325
Product: pygobject
Classification: Bindings
Component: gio
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-24 21:49 UTC by Pavol Klačanský
Modified: 2012-04-25 05:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pavol Klačanský 2012-04-24 21:49:45 UTC
Hi, this code causes error, and I need it get fixed ASAP, since I use it in my app (moved from dbus-python, because of GVariants). Also, could you advice me, how to share whole object over dbus? (I was not able any example or pythonic docs)

Thanks

**
ERROR:/build/buildd/pygobject-3.2.0/gi/pygi-argument.c:1029:_pygi_argument_from_object: code should not be reached

CODE:

vtable = Gio.DBusInterfaceVTable()
vtable.method_call = method_call
Comment 1 Martin Pitt 2012-04-25 05:35:25 UTC
With GI you unfortunately cannot do "server-side" gdbus (i. e. exporting objects). The error you see is bug 656325, which is blocked by bug 656554.

Client-side D-BUS (i. e. calling methods on objects) works fine with Gio.

For now I recommend to use dbus-python for writing D-BUS servers.

*** This bug has been marked as a duplicate of bug 656325 ***