python-grip isn't usable in python

Bug #861599 reported by Kiwinote
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libgrip
Fix Released
Medium
Stephen M. Webb

Bug Description

Steps to reproduce:
- fix gir1.2-grip in python as per the workaround in the other bug (bug 861596)
- ensure python-grip is installed from oneiric
- start python and type 'from gi.repository import Grip'
>>> from gi.repository import Grip
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module
    dynamic_module._load()
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 224, in _load
    overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
  File "/usr/lib/python2.7/dist-packages/gi/overrides/Grip.py", line 29, in <module>
    Grip = modules['Grip'].introspection_module
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 243, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python2.7/dist-packages/gi/module.py", line 105, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Grip' object has no attribute 'introspection_module'

Workaround:
change 'Grip = modules['Grip'].introspection_module ' to 'Grip = modules['Grip']._introspection_module' in the source code at bindings/python/Grip.py

Revision history for this message
Stephen M. Webb (bregma) wrote :

Simple fix seems simple.

Changed in libgrip:
status: New → Triaged
importance: Undecided → Medium
Stephen M. Webb (bregma)
Changed in libgrip:
status: Triaged → In Progress
assignee: nobody → Stephen M. Webb (bregma)
milestone: none → 0.3.3
Stephen M. Webb (bregma)
Changed in libgrip:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.