[pygtk] How do I set up my PATH?

Markus W. Barth markus at sismografo.es
Thu Jun 5 17:21:41 WST 2008


Have you installed gtk?

On Thursday 05 June 2008 00:42:37 Paolo Bacci wrote:
> Hi, I've installed on windows the lastest version of each component:
> > python25
> > pycairo
> > pygobject
> > pygtk
>
> They are in C:\Python25
>
> In my code I use these imports:
>
> import gtk
>
> > import cairo
> > import gobject
>
> and when I try to run it give me back the error:
>
> Traceback (most recent call last):
> >   File "C:\Users\paolo\workspace\HTMLDOM\src\GFX\treeView.py", line 1, in
> > <module>
> >     import gtk
> >   File "C:\Python25\lib\site-packages\gtk-2.0\gtk\__init__.py", line 38,
> > in <module>
> >     import gobject as _gobject
> >   File "C:\Python25\lib\site-packages\gtk-2.0\gobject\__init__.py", line
> > 30, in <module>
> >     from gobject.constants import *
> >   File "C:\Python25\lib\site-packages\gtk-2.0\gobject\constants.py", line
> > 22, in <module>
> >     from _gobject import type_from_name
> > ImportError: DLL load failed: The specified module could not be found.
>
> So I think that my PATH is wrong, how can I set it correctly?
>
> Thanks!




More information about the pygtk mailing list