[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] EXEs: Different Approach



Eric Pavey wrote:
I was having a real hard time, ran across this post:
http://blog.thadeusb.com/2009/04/15/pygame-font-and-py2exe/

Talked with the author, and he provided his setup.py script (available from the comments of that post) which I modified, and have been making .exe's with ever since, using Python 2.6.2, PyGame 1.9.1

Uninstalled Python, Py2exe and Pygame and did a fresh install of Python 2.6.2 and matching Py2exe and Pygame.

When I run the script linked to above, it immediately says:
[
Exception in Tkinter callback... Tkinter.py, line 2860, in compare... TclError: expected boolean value but got ""
]
And then it seems to run fine, gets to *** copy data files ***, and crashes on line 164. "can't copy 'installer.nsi': doesn't exist or not a regular file".

As comment #4 on that link says, I get a "font module not available" crash if I build an EXE using a simple setup.py (below) and copy SDL_ttf.dll and freesansbold.ttf into the dist directory.

# setup.py
from distutils.core import setup
import py2exe
setup(console=["MyProgram.py"])

And the provided script doesn't work either. So, still no working EXE.