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 786735 - Confusing error on Gtk.Application.add_option_group
Confusing error on Gtk.Application.add_option_group
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: gobject
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-24 08:44 UTC by yangfl
Modified: 2018-01-10 21:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description yangfl 2017-08-24 08:44:06 UTC
When I try to add some OptionGroup to Gtk.Application, I get error.
Comment 1 yangfl 2017-08-24 08:44:19 UTC
>>> from gi.repository import Gio, GLib, Gtk
__main__:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
>>> app = Gtk.Application()
>>> group = GLib.OptionGroup("unittest", "Unit test options", '', None)
>>> app.add_option_group(group)
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
TypeError: argument group: Expected GLib.OptionGroup, but got gi._glib.OptionGroup

Comment 2 GNOME Infrastructure Team 2018-01-10 21:00:05 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/140.