Bug 381389 – pygimp complains in codegen.py in cvs gimp

Bug #75327 reported by Marco Ciampa on 2006-12-11
4
Affects Status Importance Assigned to Milestone
PyGTK
Fix Released
Medium
pygtk (Ubuntu)
Medium
Ubuntu Desktop Bugs

Bug Description

Current cvs gimp as of 2006/12/11 fail to compile on Ubuntu Edgy.
This bug is long since been fixed. See bug #381389 in
Gnome bugzilla (http://bugzilla.gnome.org/show_bug.cgi?id=381389).

Marco Ciampa (ciampix) wrote :

Patch that fixes the bug.

Sebastien Bacher (seb128) wrote :

Thank you for your bug. We will probably not backport that change to edgy, that's a small fix and useful for hackers who can easily apply the workaround. Will be fixed with next version to feisty

Changed in pygtk:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: Unconfirmed → Fix Committed
Changed in pygtk:
status: Unknown → Fix Released
Sebastien Bacher (seb128) wrote :

That upload fixes the bug:

 pygtk (2.10.4-0ubuntu1) feisty; urgency=low
 .
   * New upstream version:
     - Documentation build fixes
     - Return NULL on error in TextBuffer.register_serialize_format
     - Do not overwrite sys.argv
     - Add status icon example
     - Make it possible to remove rows in the gtk.TreeModel.foreach callback
     - Code generator fix for %define
     - Duplicate GdkEvent.string member when setting it
     - Make it possible to use automake 1.10
     - distutils build fixes (Ubuntu: #75327)
     - Allow None to be passed into gdk.Display
     - Undeprecate gtk.container_class_list_child_properties
     - Fix memory leak in gtk.Container.child_get
   * debian/patches/20_install_createdefs.py.dpatch:
     - fixed with the new version
   * debian/rules:
     - don't install .pyc and .pyo to the package

Changed in pygtk:
status: Fix Committed → Fix Released
berna1111 (berna1111) wrote :

Sorry to disturb with newby questions, but I've Ubuntu 7.10 Gutsy Gibbon (*) on a Toshiba Satellite A30-303, with Python 2.5 and PyGTK 2.0 properly installed (sudo apt-get ...) and when I try to create an instance on Python of a gtk.window object the interpreter (IDLE 1.2.1) just shuts itself down. I just have to place the last bracket on something like:
>>> hello = HelloWorld()
HelloWorld being a class supposed to create a window with a button through PyGTK, and the interpreter closes, even before I have the time to press 'Enter'...
I don't know if the bug is related, or if I've just screwd up the code somewhere, so I tried the basic examples from the PyGTK tutorial and still got the same thing, over and over.
I've read this thread and found the patch to fix the reported bug, but I don't really understand how to fix the bug with the piece of code given. Am I supposed to place it in the /cvs/gnome/pygtk/codegen/codegen.py? Or on usr/share/pygtk/2.0/? Cause all I've got in the second directory is another directory named 'defs'.
Again, sorry for the newby question and sorry if this ain't the right place to post it.
Attached is the helloworld.py, right from the tutorial.

(*) The first two lines of the Python interpreter are:
Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2

I'm wondering if the '(prerelease)' has something to do with the bug...

berna1111 (berna1111) wrote :

Sorry to disturb with newby questions, but I've Ubuntu 7.10 Gutsy Gibbon (*) on a Toshiba Satellite A30-303, with Python 2.5 and PyGTK 2.0 properly installed (sudo apt-get ...) and when I try to create an instance on Python of a gtk.window object the interpreter (IDLE 1.2.1) just shuts itself down. I just have to place the last bracket on something like:
>>> hello = HelloWorld()
HelloWorld being a class supposed to create a window with a button through PyGTK, and the interpreter closes, even before I have the time to press 'Enter'...
I don't know if the bug is related, or if I've just screwd up the code somewhere, so I tried the basic examples from the PyGTK tutorial and still got the same thing, over and over.
I've read this thread and found the patch to fix the reported bug, but I don't really understand how to fix the bug with the piece of code given. Am I supposed to place it in the /cvs/gnome/pygtk/codegen/codegen.py? Or on usr/share/pygtk/2.0/? Cause all I've got in the second directory is another directory named 'defs'.
Again, sorry for the newby question and sorry if this ain't the right place to post it.
Attached is the helloworld.py, right from the tutorial.

(*) The first two lines of the Python interpreter are:
Python 2.5.1 (r251:54863, Mar 7 2008, 04:10:12)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2

I'm wondering if the '(prerelease)' has something to do with the bug...

Changed in pygtk:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.