I also remember that I had problems without restarting Windows after setting
new PATH environment variable.

Regards,
Marko Tasic


On Sun, Mar 13, 2011 at 11:16 AM, Dieter Verfaillie <
diet...@optionexplicit.be> wrote:

> Hi,
>
> If you simply want to use PyGTK as soon as possible, you
> might be interested in the All-in-one installer:
> http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.22/
> All you need to do is to install
> "pygtk-all-in-one-2.22.6.win32-py2.7.msi" after you've
> installed Python 2.7. That's it :)
>
> There's also a "pygtk-all-in-one.README" file that explains
> some common pitfalls and also the more advanced usage of
> the installer.
>
> If, on the other hand, you want to manage your own GTK+
> environment combined with the separate pycairo/pygobject/pygtk
> installers, read below...
>
> On 13/03/2011 10:43, Catalin wrote:
> > Hi
> > I try to make working pygtk and gtk under python27.
> > I read tutorials and i set gtk with this:
> > I add on enviroment path vars : C:\gtk\bin
>
> Make sure it comes before all other directories that might
> contain (part of) a GTK+ environment on your PATH. Be aware
> this might just as well break other software that requires
> their own GTK+ version to be the first picked up from PATH.
> (that's why the all-in-one installer does not need you to
> configure the PATH environment variable, it is taken care
> off at runtime...)
>
> > C:\gtk\bin>pkg-config --cflags gtk+-2.0
> > -mms-bitfields -IC:/gtk/include/gtk-2.0 -IC:/gtk/lib/gtk-2.0/include
> -IC:/gtk/in
> > clude/atk-1.0 -IC:/gtk/include/cairo -IC:/gtk/include/gdk-pixbuf-2.0
> -IC:/gtk/in
> > clude/pango-1.0 -IC:/gtk/include/glib-2.0 -IC:/gtk/lib/glib-2.0/include
> -IC:/gtk
> > /include -IC:/gtk/include/freetype2 -IC:/gtk/include/libpng14
>
> Not really interesting unless you want to compile a C program
> that uses GTK+. Try pkg-config --list-all to get a list of
> installed "packages".
>
> > This is the errors i got:
> >
> >>>> import pygtk
> >>>> import gtk
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File "C:\Python27\lib\site-packages\gtk-2.0\gtk\__init__.py", line 30,
> in <mod
> > ule>
> >     import gobject as _gobject
> >   File "C:\Python27\lib\site-packages\gtk-2.0\gobject\__init__.py", line
> 26, in
> > <module>
> >     from glib import spawn_async, idle_add, timeout_add,
> timeout_add_seconds, \
> >   File "C:\Python27\lib\site-packages\gtk-2.0\glib\__init__.py", line 22,
> in <mo
> > dule>
> >     from glib._glib import *
> > ImportError: DLL load failed: The specified procedure could not be found.
>
> You can trace missing dependencies like this with depends.exe
> (http://www.dependencywalker.com/). It will tell you what .dll files
> you're missing (but it's still up to you to find out what package
> provides those .dll files).
>
> mvg,
> Dieter
> _______________________________________________
> pygtk mailing list   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to