Gobject Introspection update broke dmedia
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dmedia |
Fix Released
|
Critical
|
Jason Gerard DeRose |
Bug Description
Natty update today broke dmedia. From what I can tell so far, the new GI bindings aren't playing nice with the traditional gtk/gobject bindings. The `dummy-client` script is simple and illustrates the problem. It can be fixed by replacing:
import gtk
With:
from gi.repository import Gtk
(and replacing references to gtk with Gtk). But dmedia seems broken other places to, probably because various `import gobject`. I guess it's as good a time as any to switch the GI bindings wherever possible.
Here's the trace from running `./dummy-client`:
Traceback (most recent call last):
File "./dummy-client", line 34, in <module>
view = WebKit.WebView()
File "/usr/lib/
return getattr(
File "/usr/lib/
parent = get_parent_
File "/usr/lib/
module = __import_
File "/usr/lib/
dynamic_
File "/usr/lib/
overrides_
File "/usr/lib/
Widget = override(Widget)
File "/usr/lib/
registry.
File "/usr/lib/
self[
File "/usr/lib/
info = getattr(value, '__info__')
AttributeError: type object 'Widget' has no attribute '__info__'
Related branches
- dmedia Dev: Pending requested
-
Diff: 172 lines (+30/-22)6 files modifieddmedia/__init__.py (+9/-0)
dmedia/client.py (+14/-14)
dmedia/service.py (+0/-1)
dmedia/tests/test_client.py (+2/-2)
dmedia/transcoder.py (+2/-2)
dmedia/util.py (+3/-3)
Changed in dmedia: | |
status: | In Progress → Fix Committed |
Changed in dmedia: | |
status: | Fix Committed → Fix Released |
Okay, have confirmed that python-gobject was the offending update.
If I downgrade to pygobject 2.27.90-0ubuntu1 (python-gobject and python- gobject- cairo binary packages), this problem is fixed.