python-grip isn't usable in python

Bug #861599 reported by Kiwinote on 2011-09-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libgrip
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

Stephen M. Webb (bregma) wrote :

Simple fix seems simple.

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

Other bug subscribers