On Mon, Sep 21, 2009 at 11:07:46PM +0200, Jasper Lievisse Adriaanse wrote:
> > > > > > uname -a
> > > > > > OpenBSD localhost 4.5 200909202109#0 i386
> > > > > > sysctl -n kern.version
> > > > > > OpenBSD 4.5 (200909202109) #0: Sun Sep 20 22:18:12 2009
> > > > > >     r...@localhost:/sys/arch/i386/compile/200909202109
> > > > > > pkg_info | grep -i gimp
> > > > > > gimp-2.6.4p0        GNU Image Manipulation Program
> > > > > > gimp-lqr-plugin-0.4.0.4 seam-carving smart rescale gimp plugin
> > > > > > 
> > > > > > When I run GIMP, he always display these warnings:
> > > > > > 
> > > > > > Traceback (most recent call last):
> > > > > >   File "/usr/local/lib/gimp/2.0/plug-ins/python-eval.py", line
> > > > > >     20, in <module> from gimpfu import *
> > > > > >   File "/usr/local/lib/gimp/2.0/python/gimpfu.py", line 75, in
> > > > > >     <module> import gimp
> > > > > > ImportError: could not import pygtk
> > > > > 
> > > > > You are probably missing the py-gtk2 package.
> > > > pkg_info | grep -i py-gtk2
> > > > py-gtk2-2.12.1p2    GTK+2 Python bindings
> > > > 
> > > Hey Buzzer,
> > > Have you tried testing it through the interactive console?
> > > Example:
> > > $ python
> > > >>> import pygtk
> > > 
> > echo ${PWD}
> > /tmp
> > $ python
> > Python 2.6.1 (r261:67515, Jul 11 2009, 02:21:18)
> ^^^^^^^^^^^^^^^
> 
> your default python is 2.6....
> 
> > [GCC 3.3.5 (propolice)] on openbsd4
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import pygtk
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > ImportError: No module named pygtk
> > >>>
> > 
> > > If this brings up an error after the import then something may be wrong 
> > > with your path settings.  I hope this helps.
> > 
> ...while you have py-gtk2 compiled for python 2.5.

What is your solution?

-- 
/Buzzer


Reply via email to