开发者

fatal python error pygame parachute

开发者 https://www.devze.com 2023-03-19 12:12 出处:网络
I have w开发者_StackOverflow中文版ritten a small program in WindowsXP-python-pygame. It runs fine when I run it in the dos.

I have w开发者_StackOverflow中文版ritten 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?


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号