← Back to team overview

touch-packages team mailing list archive

[Bug 1426294] Re: unable to import gtk.Window -> gio: TypeError: type 'gio.MemoryOutputStream' is not dynamically allocated but its base type '__main__.GPollableOutputStream' is dynamically allocated

 

On 02/27/2015 11:44 PM, Iain Lane wrote:
> On Fri, Feb 27, 2015 at 07:17:22PM -0000, Matthias Klose wrote:
>> we should revert that in python3.4 as well, if we cannot fix this in
>> pygobject
> 
> AIUI this is only available for python 2

the commit itself was done on all python branches.


** Changed in: python2.7 (Ubuntu)
       Status: Fix Released => New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pygobject-2 in Ubuntu.
https://bugs.launchpad.net/bugs/1426294

Title:
  unable to import gtk.Window -> gio: TypeError: type
  'gio.MemoryOutputStream' is not dynamically allocated but its base
  type '__main__.GPollableOutputStream' is dynamically allocated

Status in pygobject-2 package in Ubuntu:
  Confirmed
Status in python2.7 package in Ubuntu:
  New
Status in python3.4 package in Ubuntu:
  Confirmed

Bug description:
  Hit this after the most recent updates in vivid:

  ** (process:21949): WARNING **: couldn't make the type
  `gio.MemoryInputStream' ready

  ** (process:21949): 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:21949): WARNING **: couldn't make the type
  `gio.unix.InputStream' ready

  ** (process:21949): 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
  ImportError: cannot import name Object from gtk
  Traceback (most recent call last):
    File "/usr/bin/terminator", line 102, in <module>
      TERMINATOR.create_layout(OPTIONS.layout)
    File "/usr/share/terminator/terminatorlib/terminator.py", line 240, in create_layout
      window, terminal = self.new_window()
    File "/usr/share/terminator/terminatorlib/terminator.py", line 166, in new_window
      window = maker.make('Window')
    File "/usr/share/terminator/terminatorlib/factory.py", line 94, in make
      output = func(**kwargs)
    File "/usr/share/terminator/terminatorlib/factory.py", line 100, in make_window
      import window
    File "/usr/share/terminator/terminatorlib/window.py", line 28, in <module>
      class Window(Container, gtk.Window):
  AttributeError: 'module' object has no attribute 'Window'

  As neither terminator or pyobject-2 has changed, I would suspect the
  python update that landed on the 26th.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.04
  Package: terminator 0.97-4
  ProcVersionSignature: Ubuntu 3.18.0-13.14-generic 3.18.5
  Uname: Linux 3.18.0-13-generic x86_64
  ApportVersion: 2.16.1-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Fri Feb 27 09:56:01 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2014-11-25 (93 days ago)
  InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20141124)
  PackageArchitecture: all
  SourcePackage: terminator
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pygobject-2/+bug/1426294/+subscriptions


Follow ups

References