After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 626242 - Migrate from PyGTK to PyGObject introspection-based bindings
Migrate from PyGTK to PyGObject introspection-based bindings
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Gimp-Python
git master
Other All
: Normal enhancement
: Future
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks: 626218
 
 
Reported: 2010-08-06 16:31 UTC by André Klapper
Modified: 2018-05-24 12:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.31/2.32



Description André Klapper 2010-08-06 16:31:42 UTC
Grep'ing for pygtk-2.0 it seems that this module uses the stable bindings provided by PyGTK. 

As it is unlikely that anybody will continue maintaining these stable bindings, applications using PyGTK should be ported to using the dynamic Python bindings provided by PyGObject (now that PyGI has been merged into PyGObject).
The feedback on migration provided by application maintainers will also help PyGObject to improve its dynamic bindings.

Please see http://live.gnome.org/GnomeGoals/PythonIntrospectionPorting for more information and guidelines.

For help there is a mailing list at http://www.daa.com.au/mailman/listinfo/pygtk . For getting involved in the development of pygobject there is a mailing list at http://mail.gnome.org/mailman/listinfo/python-hackers-list . There is also the #python IRC channel on irc.gimp.net.

./gimp/configure.ac:  PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= pygtk_required_version,,
Comment 1 Jeff Singleton 2011-04-13 19:11:29 UTC
BUMP and Confirmed

PyGTK 2.24.0 has been released. This is a stable release supporting the GTK+ 2.24 API.
New users wishing to develop Python applications using GTK+ are recommended to use the GObject-Introspection features available in PyGObject.

Existing authors of PyGTK applications are also recommended to port their applications to PyGObject to take advantage of new features appearing in GTK-3 and beyond. More information on PyGObject and GObject-Introspection can be found at http://live.gnome.org/PyGObject.

PyGTK-2.24 will be the final major release of PyGTK. Additional bug-fix releases may appear when necessary to maintain compatibility and stability with the GTK-2.24 series.

----

Additional Notes...PyGTK 2.24 will not build on Snow Leopard.  Therefore GIMP will not build with python and therefore is useless (for me) since I need python to use the plugins I have.

How much work on this has been done already and when can it get merged to git master?

Thanks,
Jeff
Comment 2 Michael Natterer 2011-04-13 19:15:18 UTC
Hi Jeff, I assume that you are going to provide the patches?
Nobody is currently working on the python extension.
Comment 3 Jeff Singleton 2011-04-13 19:19:45 UTC
I cannot provide patches as I am not a developer.  I am more of a power user that can fix some code here and there.  Porting from PyGTK to PyGobject would be out of my league.

Why is this not more of a priority...Is Python-fu not a heavily used plugin system for GIMP?

Am I the only one that still uses python-based plugins for GIMP?
Comment 4 Michael Natterer 2011-04-13 19:41:54 UTC
It's not a priority because the around 3.5 active developers have
more important things to do, like keeping GIMP running at all.
Comment 5 Jeff Singleton 2011-04-13 19:43:15 UTC
Yep...free doesn't pay like it used to.  I guess I will do without for now.
Comment 6 Joao S. O. Bueno 2012-04-20 18:40:13 UTC
Do you confirm it does not work on Mac OS X as it is today? 
That would make this a regression bug that could be dealt with along the GIMP 2.8 life cycle (since there won't be API changes for the user plug-ins themselves)

(I should start working on this, but it was my intention to update the whole gimp-python for GIMP 2.10)
Comment 7 Joao S. O. Bueno 2015-07-22 21:35:51 UTC
This will likely imply changing GIMP Python to use GTK+3.x as well - and with such changes in the way, there is no motive not to change to Python3 while at it. 

Would anyone be impaired with GIMP-Python using gtk+3? I used to be worried about Windows installers having to ship both gtk+3 and gtk+2 (for GIMP itself), but it seems they already do it.
Comment 8 GNOME Infrastructure Team 2018-05-24 12:49:53 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/339.