Pygame2Exe Errors that I can’t fix

I met this problem, too. After investigation, I found that the runtime error is caused by the font. I noticed that you also used None as the font name, too. Please remember that there’s a notice for using the pygame2exe about the font, just below “Changes by arit:” at pygame2exe page, that we should use a “fontname.ttf” to replace None and place that fontname.ttf under the correct folder that the exe can find. For example, you can use “freesansbold.ttf” to replace None when creating font, and place freesansbold.ttf under the folder the exe file exists. Hope that helps.

Leave a Comment