Need Help Using py2exe

kschnee at xepher.net kschnee at xepher.net
Tue Mar 23 08:23:11 CET 2004


[Sorry if this is a duplicate message.]

Hi. I've got a neat artificial intelligence project I want to distribute
as an EXE. I'm using Python, Pygame, and Numeric. My problem is: When I
use py2exe, I'm told "The following modules appear to be missing: AppKit,
Foundation, dotblas, objc." And then my EXE crashes with a "segmentation
fault." I tried the command:

python setup.py py2exe --ignores [those modules]

It then compiles w/o complaint, but the EXE still crashes. The setup.py is
very simple:

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

What do I need to do to make my program into a working EXE?

Thanks for any help.

-Kris

PS. The line that triggers the seg. fault is one that loads a font for
rendering with pygame.font. I *was* able to build a working EXE of a
simpler program that "imports" nothing but the string module and does only
text and data-structure manipulation, no graphics.




More information about the Python-list mailing list