Pygame/Py2exe problems?

This is something I've had a problem with. I make a distutils script, run it, it tells me:

The following modules appear to be missing
['AppKit', 'Foundation', 'objc']
Furthermore, the resultant .exe won't run. Here's what I've found out:

  1. The unfound modules are red herrings. Ignore the warnings.
  2. At least with my project, a major cause of the program stopping was when it failed to find files. Make sure they're all there.
  3. If you use the default pygame font, then there's a good chance that that will get lost in the build process. It's called freesansbold.ttf - find it in the pygame directory. You'll need to put it in the directory that the rest of your program goes in.

Of course, this isn't a complete HOWTO, but I think it should solve some problems that people have been having.


Peter Corbett's Web Site Copyright © Peter Corbett, 2003-2005.