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

[pygame] py2exe and pygame font causes segfaults



I have a game that I want to package using py2exe. I compile it, and
seems fine, but I run it and I get:

"""
Fatal Python error: (pygame parachute) Segmentation Fault

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
"""

However, if I run it as normal python script, it works fine.

[ If I rename the freesansbold.ttf to something else, it end with
"IOError: unable to read font filename" as expected. ]

So I set a boolean to toggle all font creation/blits/etc... -- If it
is off, the .exe runs fine. If it is on, it fails with above error.

If I run python script , it runs fine with text on.



Any ideas?
--
Jake