RSS/Atom feed Twitter
Site is read-only, email is disabled

Pygtk errors at startup

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

mailman.7.1203710405.20008.... 07 Oct 20:26
  Pygtk errors at startup M Gagnon 22 Feb 22:56
M Gagnon
2008-02-22 22:56:57 UTC (almost 17 years ago)

Pygtk errors at startup

Hi,

I just built GIMP on Mac OS X 10.4.11 from the latest svn sources but when I launch it I get these errors at startup (however, GIMP seems to run regardless):

cube15:/Volumes/datacube/svn/gimp/trunk ep$ This is a development version of GIMP. Debug messages may appear here.

Traceback (most recent call last): File "/opt/gimp/lib/gimp/2.0/plug-ins/py-slice.py", line 31, in ? from gimpfu import *
File "/opt/gimp/lib/gimp/2.0/python/gimpfu.py", line 74, in ? import gimp
ImportError: could not import pygtk

(gimp-2.5:13288): LibGimpBase-WARNING **: gimp-2.5: gimp_wire_read(): error Traceback (most recent call last):
File "/opt/gimp/lib/gimp/2.0/plug-ins/palette-to-gradient.py", line 17, in ?
from gimpfu import *
File "/opt/gimp/lib/gimp/2.0/python/gimpfu.py", line 74, in ? import gimp
ImportError: could not import pygtk

(gimp-2.5:13288): LibGimpBase-WARNING **: gimp-2.5: gimp_wire_read(): error

Identical errors also for files: "/opt/gimp/lib/gimp/2.0/plug-ins/palette-sort.py", line 17 "/opt/gimp/lib/gimp/2.0/plug-ins/palette-offset.py", line 17 "/opt/gimp/lib/gimp/2.0/plug-ins/happy-valley-relief.py", line 20 "/opt/gimp/lib/gimp/2.0/plug-ins/gimpcons.py", line 20 "/opt/gimp/lib/gimp/2.0/plug-ins/foggify.py", line 20 "/opt/gimp/lib/gimp/2.0/plug-ins/colorxhtml.py", line 25

To build GIMP I used the instructions at http://wiki.gimp.org/gimp/HowToCompileGimp/MacOSX

with:

$ ./autogen.sh --without-mng --without-alsa --disable-alsatest --without-x --with-libtiff LDFLAGS="-L/opt/gtk/lib -L/opt/local/lib -L/usr/local/lib" CPPFLAGS="-I/opt/gtk/include -I/opt/local/include -I/usr/local/include" --prefix=/opt/gimp

Any idea on how to fix those errors?

Thx

Ettore

Are you exporting the PYTHONPATH envrionment variable prior to launching GIMP, just like it is written in the above article? On my computer this is how I could fix these errors