On Sun, Sep 20, 2009 at 10:47:20AM -0700, Ryan Boggs 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)
[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.

$ pkg_info | grep -i py-gtk
py-gtk2-2.12.1p2    GTK+2 Python bindings

$ find / -type f -name "pygtk*"
/usr/local/bin/pygtk-codegen-2.0
/usr/local/bin/pygtk-demo
/usr/local/lib/pkgconfig/pygtk-2.0.pc
/usr/local/lib/python2.5/site-packages/pygtk.pth
/usr/local/lib/python2.5/site-packages/pygtk.py
/usr/local/lib/python2.5/site-packages/pygtk.pyc
/usr/local/lib/python2.5/site-packages/pygtk.pyo
/usr/local/lib/pygtk/2.0/pygtk-demo.py
/usr/local/lib/pygtk/2.0/pygtk-demo.pyc
/usr/local/lib/pygtk/2.0/pygtk-demo.pyo
/usr/local/include/pygtk-2.0/pygtk/pygtk.h

Attached 'info4inst_py-gtk.txt.gz' file may provide more info about
installed port 'py-gtk2'.

-- 
/Buzzer

Attachment: info4inst_py-gtk.txt.gz
Description: application/gunzip

Reply via email to