"import gtk" fails with TypeError: type 'gio.MemoryOutputStream' is not dynamically allocated but its base type '__main__.GPollableOutputStream' is dynamically allocated

Bug #1426425 reported by Denis Washington
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pygtk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

On today's Ubuntu vivid (freshly installed from daily image), any pygtk app fails on "import gtk" (more specifically, the nested "import gio") with the following output (taking Dropbox as an example)

$ dropbox start -i
Starting Dropbox...
** (process:15699): WARNING **: couldn't make the type `gio.MemoryInputStream' ready

** (process:15699): WARNING **: couldn't make the type `gio.MemoryOutputStream' ready
TypeError: type 'gio.MemoryOutputStream' is not dynamically allocated but its base type '__main__.GPollableOutputStream' is dynamically allocated

** (process:15699): WARNING **: couldn't make the type `gio.unix.InputStream' ready

** (process:15699): WARNING **: couldn't make the type `gio.unix.OutputStream' ready
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
  from gtk import _gtk
ImportError: could not import gio
ImportError: could not import gio
Traceback (most recent call last):
  File "/usr/bin/dropbox", line 1257, in start
    download()
  File "/usr/bin/dropbox", line 338, in download
    class DownloadDialog(gtk.Dialog):
AttributeError: 'module' object has no attribute 'Dialog'

Revision history for this message
dino99 (9d9) wrote :

like lp:1426229 and some others

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pygtk (Ubuntu):
status: New → Confirmed
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.