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 663345 - 'from gi.repository import Gtk' fails in jhbuild
'from gi.repository import Gtk' fails in jhbuild
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: introspection
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2011-11-03 18:33 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2011-11-03 19:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joanmarie Diggs (IRC: joanie) 2011-11-03 18:33:04 UTC
I see this from within my jhbuild shell:

>>> from gi.repository import Gtk
Traceback (most recent call last):
  • File "<stdin>", line 1 in <module>
  • File "/opt/gnome/lib64/python2.6/site-packages/gi/importer.py", line 76 in load_module
    dynamic_module._load()
  • File "/opt/gnome/lib64/python2.6/site-packages/gi/module.py", line 224 in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  • File "/opt/gnome/lib64/python2.6/site-packages/gi/overrides/Gtk.py", line 523 in <module>
    class FontSelectionDialog(Gtk.FontSelectionDialog, Dialog):
  • File "/opt/gnome/lib64/python2.6/site-packages/gi/module.py", line 105 in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'FontSelectionDialog'

I thought perhaps it was just me, but this just in from IRC:

mclasen has no luck running accerciser in jhbuild
<mclasen> AttributeError: 'gi.repository.Gtk' object has no attribute 'FontSelectionDialog'

Guess it's not just me. I don't know if the bug is in introspection or Gtk+, so I'm starting here since Matthias didn't follow the above with "And I'll fix it!" ;) ;)
Comment 1 Matthias Clasen 2011-11-03 18:35:19 UTC
This could be fallout from our deprecation changes - maybe the introspection parser fell over ?
Comment 2 Colin Walters 2011-11-03 19:28:42 UTC
commit 6cf1385e8fba0f6935a82a0f4108ba9a2649a61e
Author: Colin Walters <walters@verbum.org>
Date:   Thu Nov 3 15:27:16 2011 -0400

    introspection: Include deprecated headers for scanner too
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663345