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 363516 - Gimp python cannot be used if pygtk not installed against python - take two
Gimp python cannot be used if pygtk not installed against python - take two
Status: VERIFIED FIXED
Product: GIMP
Classification: Other
Component: Gimp-Python
2.3.x
Other All
: Normal normal
: ---
Assigned To: Manish Singh
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-10-19 22:01 UTC by Eric Lamarque
Modified: 2008-01-15 14:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
replace init_pygobject() by pygimp_init_pygobject() in pygimp modules (890 bytes, patch)
2006-10-19 22:04 UTC, Eric Lamarque
none Details | Review

Description Eric Lamarque 2006-10-19 22:01:57 UTC
Please describe the problem:
This one is similar to bug #332622. python plugin cannot find pygtk if
not install in site packages. It appears after the latest dev in
pygimp plugin (2.3.11 or 2.3.12).


Steps to reproduce:
See bug #332622


Actual results:
A trace back for each python scripts included in distribution

Traceback (most recent call last):
  • File "/mnt/windows/eric/newgimp/bindev/lib/gimp/2.0/plug-ins/sphere.py", line 21 in ?
    from gimpfu import *
  • File "/mnt/windows/eric/newgimp/bindev/lib/gimp/2.0/python/gimpfu.py", line 72 in ?
    import gimp
ImportError: could not import gobject

(gimp-2.3:6749): LibGimpBase-WARNING **: gimp-2.3: wire_read(): error


Expected results:
No traceback. Python plugin available.

Does this happen every time?
Yes (Linux/x86 and Solaris/Sparc)

Other information:
Comment 1 Eric Lamarque 2006-10-19 22:04:46 UTC
Created attachment 75041 [details] [review]
replace init_pygobject() by pygimp_init_pygobject() in pygimp modules
Comment 2 Manish Singh 2006-10-20 08:02:29 UTC
Thanks for noticing and the fix.

2006-10-20  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/procbrowser.c: use pygimp_init_pygobject here too.
        Report and patch from Eric Lamarque (fixes bug #363516).