Luca Masini wrote:
3) Creating a 'executable' program. I think I've read about compiling
python scripts into a binary program. Is this possible, and if so how?


There's a FAQ item on this (but for win32); I don't have personal
experience here, but there are a number of approaches outlined in the
FAQ entry that could work for other platforms. I'm not sure if anybody
ever succeeded in doing this on Linux or Unix, I'd be interested if so.


I have sucessfully compiled a pygtk/glade program using cx_Freeze 2.2 (released August 27, 2003) from http://starship.python.net/crew/atuining/cx_Freeze/index.html (you need to install cx_PyGenLib; a needed general libraries too)

I had tried to compile my program with the freeze utility that comes
 with the python distribution but there was problem because gdk is a
 binary package and not a binary module...
can't remember exactly, it was last november.

Then I found cx_Freeze and I was able to compile my program.

Starting from the URL of cx_freeze you should be able to find
enough info. In anny case I have some note (somewhere) on
how to use it.


When I try this, on Windows, using Python 2.3 and cx_Freeze 2.2, I get:

File "C:\Python23\Lib\site-packages\gtk-2.0\gtk\glade.pyd", line 4, in ?
  ImportError: cannot import name Widget from gtk._gtk

The same error occurs in cx_Freeze 2.3. If you can publish your notes, please do.

cheers,
jml

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to