fatal python error pygame parachute

早过忘川 提交于 2019-12-31 05:28:07

问题


I have written a small program in WindowsXP-python-pygame. It runs fine when I run it in the dos. Then, I tried to create a windows executable using py2exe. .exe was created without any issue. Initially on running the executable, I got a NotImplemented error which went away after I copied some dll files from pygame folder to the dist folder. Now I am getting a new error. It reads: "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."

I have already looked at the following pages: [1] http://pygame.org/wiki/Pygame2exe [2] http://thadeusb.com/weblog/2009/4/15/pygame_font_and_py2exe [3] http://www.google.com

These do not seem to be of help. I mean I am getting the error in spite of using all the instructions there. Any idea?


回答1:


I got it working. Edited the line extra_data in the following place:

pygame.org/wiki/Pygame2exe 

to:

self.extra_datas = ["freesansbold.ttf",
                    "SDL.dll",
                    "SDL_ttf.dll",
                    "libfreetype-6.dll",
                    "zlib1.dll"]

This works!



来源:https://stackoverflow.com/questions/6646154/fatal-python-error-pygame-parachute

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!