WTF! PyGTK is f**king everywere!

arc@osl:/var/log/apache2$ sudo cat osl.ulpgc.es.access.log | grep GET | grep  pygtk-setup.exe | wc -l
852
arc@osl:/var/log/apache2$ sudo cat osl.ulpgc.es.access.log | grep GET | grep  pygtk-setup.nsi | wc -l
51

That means, 852! downloads of the installer and 51 downloads of the nsis source in less than 20 hours.

I would never even imagine such success from a buggy and unfinished installer coded in a few hours. I think I’ll try to find a way to make it official so I can mantain it better. If you wanna help, please contact me or join the pygtk mailing list.

My chrismas present: All-in-One win32 python installer.

Since my Cherokee patch, I’ve been playing around with NSIS, the Windows tool for building installers. One of my obsessions with software is that entry barriers should be as low as possible in order to have a successful product and let people enjoy with it.

I’ve been using Python and PyGTK for five years, I think that right now, are probably the easiest and funniest tools to get introduced into software development and gui programming on the free software world. One of the most interesting feature is that they’re both cross-platform, so you can write software that can run in 90% of its code on almost any UNIX, Windows and Mac OS X.

Although, the problem with PyGTK is that is hard to setup on the most popular enviroment,  Windows, which kills its potential success on the mass audience.  Why is that hard to setup a PyGTK working enviroment right now? Well, let’s take a look on the steps you need to take if you don’t know anything about python and/or pygtk:

  1. Go to pygtk.org
  2. Go to the download section and figure out where the Windows installer is.
  3. Download the PyGTK Windows Installer from the GNOME FTP.
  4. Install it and figure out that you need the Python Installer (that’s not explained).
  5. Install it and figure out that you also need PyCairo and PyGobject. (not explained)
  6. Install Py[Cairo|Object], try PyGTK, and figure out that you also need the  GTK+ runtime for windows, which is on an unofficial webpage, since the official win32 gtk+ binaries are a bunch of .zip files. (not explained and very hard to figure out)
  7. Write "Hello World!".

As a summary, you have:

  • 5 different installers from 3 different sites
  • 3 critical steps not explained from the website, which force people to ask google and waste lot of time.

I would like to know how many windows users (which are the most of the people out there) have had gave up before to be able to even write a hello world and make it work.

Solutions? Well, the website issue is been addressed since I’ve been discussing this on the mailing list. Join the discussion.

Until then I’ve been using my NSIS-fu, and I’ve created a rudimentary installer that has everything together:

There is some things that I want to fix, for example, the PyGTK modules cannot be installed in silent mode, so it appears three dialogs "extra" that I would like to override. I also would like to fix some uninstalling problems and be able to detect previous Gtk+ or Python installations on runtime.

If you wanna help, patches are welcome:

My first Cherokee patch commited!

It’s official, now I’m a Cherokee contributor.

Cherokee is a lightweight but powerful web server, easy to install and configure and very flexible. I got interested in it for alo, its main developer and project leader (and good friend though ;-).

I have created the software installer icon, until my patch it was using the default NSIS‘s (the Windows installer builder tool) installer icon, which is very ugly IMHO.

I have another patch in pending state for the windows build.

Before:

After:

Next step: Cherokee’s Administration Interface.