You cannot import "gtk" when you use gi.repository.Gtk (i. e. GTK 3).
You need to use the gi.repository modules all the way through. Please
note that pygobject has a gi.pygtkcompat module which will help
somewhat: http://www.piware.de/2012/03/pygobject-3-1-92-released/

** Changed in: pygobject (Ubuntu)
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to pygobject in Ubuntu.
https://bugs.launchpad.net/bugs/899409

Title:
  python2.7 crashed with SIGSEGV in g_return_if_fail_warning()

Status in “pygobject” package in Ubuntu:
  Invalid

Bug description:
  porting to Gtk3 when execute python and have a import gtk python crash

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: python2.7-minimal 2.7.2-5ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-14.23-generic 3.0.9
  Uname: Linux 3.0.0-14-generic i686
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  CrashCounter: 1
  Date: Fri Dec  2 18:16:01 2011
  ExecutablePath: /usr/bin/python2.7
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  ProcCmdline: python postr.py
  SegvAnalysis:
   Segfault happened at: 0x428f0d <_IO_default_xsputn+13>:      call   0x4cab63
   PC (0x00428f0d) ok
   source "0x4cab63" (0x004cab63) ok
   destination "(%esp)" (0xbf59dff4) not located in a known VMA region (needed 
writable region)!
   Stack memory exhausted (SP below stack segment)
  SegvReason: writing unknown VMA
  Signal: 11
  SourcePackage: python2.7
  StacktraceTop:
   g_return_if_fail_warning () from /lib/i386-linux-gnu/libglib-2.0.so.0
   g_type_get_qdata () from /usr/lib/i386-linux-gnu/libgobject-2.0.so.0
   ?? () from /usr/lib/python2.7/dist-packages/gobject/_gobject.so
   ?? () from /usr/lib/python2.7/dist-packages/gobject/_gobject.so
   ?? () from /usr/lib/python2.7/dist-packages/gobject/_gobject.so
  Title: python2.7 crashed with SIGSEGV in g_return_if_fail_warning()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare vboxusers

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to