After Gtk+ Installer, I realized also a PyGtk all in one installer, for Python 2.6 http://www.python.org/download/windows/
You can download it from here:
pygtk_windows_installer.exe
It is simply an assembling of all the different installers I previously downloaded (which are executed step by step), and you can choose.
I realized this installer using EclipseNSIS and compiling the script generated by NSIS.
Then, the script I created and that you can compile and modify using NSIS is the following:
pygtk_windows_installer.nsi
Gtk all in one installer
pygobject-2.20.0.win32-py2.6.exe
pycairo-1.8.6.win32-py2.6.exe
pygtk-2.16.0+glade.win32-py2.6.exe
PyOpenGL-3.0.1.zip
pywin32-214.win32-py2.6.exe
I'll try to keep update this installer.
33 comments:
If it is ann all-in-one installer it should contains the python installer too.
Thank you for your hard work! (It eases the installation process). Just add the python installer and it will be a real all-in-one installer.
Ok. I have installed your all-in-one package, and im unable to launch a simple pygtk program.
I have even installed a python. And im now able to launch python, but import gtk does not work. (No module named gtk).
So some instructions would be really appreciated.
Thx
It sounds strange, in my case all is good.
1 Verify if you have Gtk\bin in your PATH.
2 Try to reinstall only PyGtk section, then tell me again.
Thanks.
Marco: can you please tell me if an independant (from your installer) python installation required or not?
So do I need to download a python installer from python.org separately?
I suppose that Python is already installed before executing this installer.
Then you must have installed Python before.
Maybe that is the problem. I have installed python after.
These was the steps:
1. I have downloaded your installer(pygtk_windows_installer.exe)
2. and installed
3. a simple hello world didnt execute (no python), than
4. I downloaded alberto ruiz's installer:
http://osl.ulpgc.es/~arc/gnome/pygtk-setup.exe
5. and installed only the python component.
At the end, I have python installed under c:\Python25 but cant execute a simple hello world pygtk program.
(import gtk fails).
So I stick with alberto's version, really shame it is only gtk 2.10. Couldnt find a newer version.
I think, if you want a really all-in-one installer, than python must be bundled into it. Or provide a detailed tutorial.
Anyway I dont want to criticize you, these are just some thoughts.
Thank you for your hard work!
I think, if it is
It is not an hard work, don't worry.
It is so simple that I don't understand why it doesn't exist such kind on installer.
I can insert Python into my installer.
But now, I didn't understand if your installation is ok :-)
If not try to install Python before all others.
Thanks, tell me if you can work nicely.
I added Python and PyWin32 in the installer.
Ok, I have played with your installer.
I removed the previously installed pygtk, gtk, and python.
When I launch your installer it popups for all the components. I leaved all checked and tried to install it.
It installed
1. pygtk all in one installer
2. gtk+
It didnt install:
1. python
2. pygtk
3. others
It created c:\program files\pygtk for windows all in one installer, and put the remaining installer into it:
gtk_installer.exe
pycairo-1.4.12-1.win32-py2.5.exe
pygobject-2.14.1-1.win32-py2.5.exe
pygtk-2.12.1-1.win32-py2.5.exe
pygtkglext-1.1.0.win32-py2.5.exe
PyOpenGL-3.0.0b1.win32.exe
python-2.5.2.msi
pywin32-210.win32-py2.5.exe
uninstall.exe
So after your installer I dont have python by default. So there is definitely something wrong (the other installers are not automatically launched?)
So I tried manually:
1. installed your installer
(this installs "gtk+" and "pygtk for windows all in one installer")
2. python-2.5.2.msi
3. pygtk-2.12.1-1.win32-py2.5.exe
4. pycairo-1.4.12-1.win32-py2.5.exe
5. pygobject-2.14.1-1.win32-py2.5.exe
6. pywin32-210.win32-py2.5.exe
So after I dont have in my start menu python (and idle), and not on my desktop.(needs fixed?)
But it is located under c:\python25
So I launch the cmd, and run c:\python25\python.exe manually, and tried: import gtk.
It results:
There is no libglib-2.0-0.dll.
And in python window:
>>> import gtk
Traceback (most recent call last):
File "< stdin>", line 1, in < module>
File "C:\Python25\lib\site-packages\gtk-2.0\gtk\__init__.py", line 38, in < mod
ule>
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: A megadott modul nem talßlhatˇ.
>>>
So there is something definietly wrong. Can you help me out please?
Maybe may previous comment didnt get through.
In a nutshell:
1. your installer does not run all the installers, just the gtk+ one.
2. I installed manually all the other installer from c:\program files\pygtk for windows all in one installer
3. the import gtk not working (missing dll)
4. I reinstalled the gtk.
4.a import gtk not works (missing dll)
I rebooted my machine, and now it works. Thank you!
So the problems:
1. the installers are not launched automagically
2. python not put into the start menu. There is no IDLE either (in the start menu).
So I think if you fix the above problems, your installer will be really rock!
Thanks to all, the problem was the msi extension of the Python File, because it caused blocking of all the others Python related packages.
Now I'm uploading again, it seems to be ok, but tell me if other things will go wrong, please:-)
Sorry for the previous errors.
Thanks for your work Marko, it's much appreciated. Now if you can update it with the latest gtk+ and cairo :). And the uninstall doesn't work for me - I have to manually uninstall the individual installations.
I assembled together the latest stable and more official as possible libraries I found in different sites.
I don't find updated Cairo and Gtk+ for Windows at the moment.
Hi!
I had finally time and access to a windows xp computer and I retested your installer. Now I can say, it works flawlessly.
However I would like to point out some missing bits here and there:
1. I think a reboot is needed (although im not certain about this) (I needed on one computer)
So installer should propose a reboot just to be on the safe side.
2. I think too many start menu item is created. I think some grouping should be good. Something like this:
- python
* idle
* uninstall python
* pygtk>
+ uninstall pygtk
etc, etc
Keep up the good work! I think if you can post *REGURARLY* your python+pygtk installer it would be awesome. Just dont give up! So you should keep this work for years to gear momentum.
Thank you very much!
Best regards,
Khiraly
Hi!
Thanks for all, your feedbacks are good for me.
First question: I think you said right things, it is hard for me to test because I had already installed all the libraries (with the registry keys), but sometimes I had some problems, especially about the updating of Gtk+ PATH environment variables.
Second question: this installer is only an assembling of different installers then I think it is better to leave all the choices opened (if someone wants to have only one library, I think he must have menu links).
My wish is not to mantain for ever this installer, but to leave opened the possible to do it by other people.
Then you can get the script .nsi that you can use and modify.
It was strange for me that these kinds of installers are successful: they are very easy to create, in two minutes you can obtain an useful installer, sometimes you must update it, but generally it is very easy to modify (and Google is our friend).
¡Excelente trabajo!
Good job!
I dont know if you are still reading the comments in this blog entry, but anyway.
I have tried your installer on a fresh windows xp computer.
http://www.bonifazi.eu/appunti/pygtk_windows_installer.exe
(retieved on 20080605)
After installing it, I noticed two problems:
1. reboot is necessary. If I dont reboot after the installation a .dll file is not found. libglib-2.0.dll or something like that. (I dont recall it exactly).
Step to reproduce:
launch the python command line, and type:
import gtk
2. If I launch a simple gtk application which use glade, I get the following warning:
view.py:56: GtkWarning: GtkWarning: Unable to locate theme engine in module_path: "bluecurve"
self.xmlWidgets.append(gtk.glade.XML(glade_filename, wids[i]))
I hunted down the root of this problem.
More information is here:
http://faq.pygtk.org/index.py?req=show&file=faq21.012.htp
The problem is, the installer installs a gtkrc file which contains the theme engine "bluecurve".
But the available theme engines are: pixmap, wimp
So the correct solution would be:
1. Check the available theme engines:
c:\Program Files\Gtk\lib\gtk-2.0\2.10.0\engines\libpixmap.dll
c:\Program Files\Gtk\lib\gtk-2.0\2.10.0\engines\libwimp.dll
2. erase the unavailable theme engine's directories in
c:\Program Files\Gtk\share\themes:
Bluecurve
Clearlooks
Crux
Emacs
Industrial
Lighthouseblue
Mist
Raleigh
ThinIce
3.
Overwrite the default gtkrc file:
copy c:\Program Files\Gtk\share\themes\MS-Windows\gtk-2.0\gtkrc
c:\Program Files\Gtk\etc\gtk-2.0\gtkrc
For a quick solution only the third step is required.
Alternatively we could install precompiled theme engines. See:
http://faq.pygtk.org/index.py?req=show&file=faq21.012.htp
(Im the same guy who tested previously too).
Best regards,
Khiraly
Keep up the good work.
I have installed the all-in-one solution but it fails to find 'matplotlib' when I try to import it. I should point out that my knowledge of python is very, very limited. I am jsut trying to set up my windows python environment so as to be able to run the 'Febrl' python application.
Hm, dunnow about including python as well.
I installed this, but seem to have libglade-0.19-0-0.dll not libglade-0.20-0-0.dll as some program is asking for.
Is it possible to check if glade is the latest version ?
Also, it might be worth seeing how difficult it is to build pygtkglext, as I think there is at least one release newer than the included version (not packaged yet for windows though).
The install path
C:\Program Files\GTK
differs from the normal install to
C:\Program Files\Common Files\GTK
Keep up the good work, this is great.
I've compiled the newest libglade, please have a look!
hello,
i tried to use your all in one installer for windows.
the purpose is to run pycam .
and your installer is mentioned on the sourceforge.net as an requirement.
when i start pycam there should be two windows to open.one is pycam .stl and the other is pycam visualization.
the problem is the second one.this is the content of the popup "Failed to initialize the interactive 3D model view.
Please install 'python-gtkglext1' to enable it."
because i am an absolut blockhead in programming i can´t even guess what is going wrong.
some ideas:i searched for the installed files:i found files like pycairo,pyobjekt,pygtk and so on.i am unable to find pygtkglext1 or something like this.i expect somehow that your installer produces a file called pygtkglex,but it does´t-maybe there is no need .but maybe i have to install someting different first.
i searched for information that shows how to create a binding (?) gtkglex to python2.6.
what i found was an installerfile called gtkglext-win32-1.0.6.exe but it doesn´t produce a file pygtklext. i also tried to produce it with the python console ,but as i told you i have absolut no idea what i have to do or even what i am doing.
thanks for any help and hint.
malcolmxiv@googlemail.com
Hi.
GtkGlExt is a library which allows to use OpenGL environment together with Gtk.
PyGtkGlExt is the related wrapper for Python.
You need both.
This installer should contain GtkGlExt, but not PyGtkGlExt, because it's thought to work with Python 2.6 and at the moment I don't have PyGtkGlExt for Python 2.6, I don't find it online, and I didn't manage to compile it.
If you are able to use Python 2.5, you can use and find the library you need, and I will provide you links/installers to do that.
Regards
hello,
thanks for your response.
if by "using pyhon2.5" is only meant to install it,i can do it.
this is what i have done yestersday.i searched all files for pycam related to python2.5 and installed everything.but the result was also disappointing.
what i do not know is if i can install the actual files under python2.6 and the missing pyglext file under python 2.5.
if this is possible, it would mean that there is something different wrong,because i am shure i did do something like this.
another idea from me is ,that a kind of precondition is missing on my pc´s.noone else seem to have this kind of problems with installing the pycam software.i even tried a standalone-solution from pycam and it ends up with a failure.
so back to the use of python2.5.
i think i can find a libary.
if it is just copy&paste it into another directorie-this would be great. if i have to open it with py that will work too.if i have to modify it or have to compile it,it becomes hard work for me in lack of knowledge.
kind regards
You are bound to the fact that PyGtkGlExt is only for Python 2.5
So all your packages must be for Python 2.5.
Uninstall whatever you have in your computer not related to Python 2.5 and try this sequence, I hope it's fine.
Please, strictly follow these steps and if you will have further troubles, let me know.
Python 2.5
http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi
Gtk+ and GtkGlExt libraries (here I'm not sure: this one is the latest revision, I hope that is compatible with the old PyGtk stuff)
http://www.bonifazi.eu/appunti/gtk_installer.exe
PyOpenGL for Python 2.5
http://sourceforge.net/projects/pyopengl/files/PyOpenGL/3.0.1/PyOpenGL-accelerate-3.0.1.win32-py2.5.exe/download
PyCairo for Windows Python 2.5
http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.4/pycairo-1.4.12-2.win32-py2.5.exe
PyGobject for Windows, Python 2.5
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-2.14.2-2.win32-py2.5.exe
PyGtk for Windows, Python 2.5
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.12/pygtk-2.12.1-3.win32-py2.5.exe
PyGtkGlext for Windows, Python 2.5
http://www.stephanebrunet.net/gtkglext/pygtkglext-1.1.0.win32-py2.5.exe
2.part
run pycam-0.2.5.1.win32.exe
first a popup shows following results.
title of popup: pythonw.exe component not found
content (translateted): application couldn´t be started because libgdkglext-win32-1.0.0.dll wasn´t found.
i pressed the button ok in the window.and the application pycam started with following popup:
--------------text of pop-up------------
neither the GTK nor the Tk interrface is available.Please install the corresponding packages!
dependency report for GTK interface:
phython bindings for GTK+: OK
gtk extension for opengl: Missing (see http//www.bonifazi.eu/appunti/pygtk_windows_installer.exe)
Python bindings for opengl: OK
dependency report for tk interface:
TK for opengl:missing (see http//downloads.sourceforge.net/togl/
tk interface for python: OK
python interface for opengl: OK
Detailed list of requirements: http//sourceforge.net/apps/mediawiki/pycam/index.php?title=requirements
-------------------------------------
so,this is the result after installing everthing under python2.5.4.
but it is the same result i have had yesterday when i collected all 2.5 related packages.
your links where alomost the same files i found via google.only pycairo and pyobject differed in the last number.my files were 1 and yours
have a 2 instead.
any ideas about the "togl".
i hope this is not all senselessinformation to you.and thanks a lot for the quick answers and the help you offer.
meanwhile i will install gtkglext (gtkglext-win32-1.0.6.exe) i made it out of zip file with nsis (wow it worked-you ar right its quite easy)
and i will install togl (Togl-1.7.zip)
with kind regards
malcolmxi
had tomake two parts because of the length
Hi. it looks like you don't have the gtkglext library.
It's due to the fact that my previous gtk_installer.exe didn't contain it, but I've updated it.
Try to download again this package again and redo the previous steps.
Let me know.
http://www.bonifazi.eu/appunti/gtk_installer.exe
hello dear Mr Bonifazi!
it is running.
thank you very much for your help.
i do not know if that what you did is genius-but for me it is,because i would have never managed it on my own.
and i ow you a lot of respect because you helped an absolutely unknown person with your knowledge,time and work.
with kind regards
Hello Malcolm and Marco,
I am following the history about pycam installation problems related with a missing file: python-gtkglext1.
I would appreciate if could you explain the steps you followed to install pycam, specifying the correct order of installation and Python version utilised.
In my case:
1- Python 2.6.6 http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi
2- GTK v2.12 and GtkGlExt: http://www.bonifazi.eu/appunti/pygtk_windows_installer.exe
3- Pycam for windows: pycam-0.3.win32.exe from http://sourceforge.net/projects/pycam/files/
After this, I continue to get the same result: "Failed to initialize the interactive 3D model view".
Regards and thank you in advance,
Rogelio
I'm not an expert of PyCam! I've never installed it!
But it seems that you have to remove Python 2.6, doing the following steps and then install PyCam.
Regards
Python 2.5
http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi
Gtk+ and GtkGlExt libraries (here I'm not sure: this one is the latest revision, I hope that is compatible with the old PyGtk stuff)
http://www.bonifazi.eu/appunti/gtk_installer.exe
PyOpenGL for Python 2.5
http://sourceforge.net/projects/pyopengl/files/PyOpenGL/3.0.1/PyOpenGL-accelerate-3.0.1.win32-py2.5.exe/download
PyCairo for Windows Python 2.5
http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.4/pycairo-1.4.12-2.win32-py2.5.exe
PyGobject for Windows, Python 2.5
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-2.14.2-2.win32-py2.5.exe
PyGtk for Windows, Python 2.5
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.12/pygtk-2.12.1-3.win32-py2.5.exe
PyGtkGlext for Windows, Python 2.5
http://www.stephanebrunet.net/gtkglext/pygtkglext-1.1.0.win32-py2.5.exe
Marco,
I followed your instructions without success. Sorry for waisting your time with Pycam questions. I guess it is the consequence of both being good with programming and being nice with strange people.
I am asking further help to Malcolm. I promess to write down detailed instructions after succeeding.
Saludos
Hi, I'm getting an error when running this script in python "from OpenGL.Tk import *". The error is "No handlers could be found for logger
"OpenGL.Tk"
Traceback (most recent call last):
File "C:\Users\Me\Desktop\Pyhton openGL\Super 3.py", line 3, in
from OpenGL.Tk import *
File "C:\Python26\ArcGIS10.0\lib\site-packages\OpenGL\Tk\__init__.py", line 114, in
_default_root.tk.call('package', 'require', 'Togl')
TclError: can't find package Togl"
I know that I need to install Togl but I can't understand the jargon being used e.g. compile src file,...from the download page. I've search for long hours looking for a way only to find find others in the same dilema. I just thought it would have been to execute a .exe file. Please....can you assist with step by step instructions. Pleaseeeeeeeeeeee...
Thanks
TO be honest, I've never used such library, I really don't know.
Here there's something, hope it helps
http://togl.sourceforge.net/faq.html#python
Post a Comment