On Mon, Nov 1, 2010 at 9:20 PM, Christoph Gohlke <cgoh...@uci.edu> wrote: > > > Yes, except I renamed netrek-client-python to start.py as you instructed. I > am using python-2.6.6.amd64.msi, pygame-1.9.2pre.win-amd64-py2.6.exe, and > py2exe-0.6.10dev.win-amd64-py2.6.exe from my website. Here are the files if > you want to try: > > http://www.lfd.uci.edu/~gohlke/netrek-client-pygame-0.6.zip
Ok I upgraded to Python 2.6.6 and now it works! But I am seeing something odd. If I build using your build.py the .EXE created works but when I look inside dist\library.zip there is no freesansbold.ttf in it. Yet if I modify build.py it does include freesansbold.ttf in dist\library.zip, yet the .EXE crashes with the same error as before if I do that! So it seems including the font file is actually causing it to crash. The only part of build.py I modified is the last bit: import zipfile font = 'freesansbold.ttf' zip = zipfile.ZipFile('dist/library.zip', 'a') zip.write(font, 'freesansbold.ttf') zip.close() Also when looking at the dist\ directory in the zip file you sent me that you have way more files in there than I have in my dist\ directory. Could that be related to these messages I get when I build: The following modules appear to be missing ['AppKit', 'Foundation', 'Numeric', 'OpenGL.GL', '_scproxy', 'copyreg', 'dummy. rocess', 'numpy', 'pkg_resources', 'queue', 'winreg', 'pygame.sdlmain_osx'] *** binary dependencies *** Your executable(s) also depend on these dlls which are not included, you may or may not need to distribute them. Make sure you have the license if you distribute any of them, and make sure you don't distribute files belonging to the operating system. OLEAUT32.dll - C:\Windows\system32\OLEAUT32.dll USER32.dll - C:\Windows\system32\USER32.dll SHELL32.dll - C:\Windows\system32\SHELL32.dll KERNEL32.dll - C:\Windows\system32\KERNEL32.dll WINMM.dll - C:\Windows\system32\WINMM.dll WSOCK32.dll - C:\Windows\system32\WSOCK32.dll ADVAPI32.dll - C:\Windows\system32\ADVAPI32.dll WS2_32.dll - C:\Windows\system32\WS2_32.dll GDI32.dll - C:\Windows\system32\GDI32.dll ole32.dll - C:\Windows\system32\ole32.dll How can I resolve these issues? Here are the files in my dist\ directory: Directory of C:\Users\Administrator\Desktop\python\sandbox\netrek-client-pygame-0.6\dist 11/02/2010 04:28 PM <DIR> . 11/02/2010 04:28 PM <DIR> .. 08/17/2010 07:23 AM 88,064 bz2.pyd 11/02/2010 04:28 PM 0 dir.txt 11/02/2010 03:23 PM <DIR> images 11/02/2010 03:23 PM 2,687,408 library.zip 08/17/2010 07:33 AM 164,352 pyexpat.pyd 10/16/2010 05:12 PM 14,848 pygame.base.pyd 10/16/2010 05:13 PM 10,240 pygame.bufferproxy.pyd 10/16/2010 05:12 PM 17,408 pygame.cdrom.pyd 10/16/2010 05:12 PM 27,648 pygame.color.pyd 10/16/2010 05:12 PM 16,896 pygame.constants.pyd 10/16/2010 05:12 PM 25,600 pygame.display.pyd 10/16/2010 05:13 PM 35,840 pygame.draw.pyd 10/16/2010 05:12 PM 23,552 pygame.event.pyd 10/16/2010 05:12 PM 13,824 pygame.fastevent.pyd 10/16/2010 05:12 PM 19,456 pygame.font.pyd 10/16/2010 05:13 PM 26,112 pygame.image.pyd 10/16/2010 05:12 PM 191,488 pygame.imageext.pyd 10/16/2010 05:13 PM 14,336 pygame.joystick.pyd 10/16/2010 05:12 PM 9,728 pygame.key.pyd 10/16/2010 05:13 PM 36,864 pygame.mask.pyd 10/16/2010 05:13 PM 76,800 pygame.math.pyd 10/16/2010 05:12 PM 26,624 pygame.mixer.pyd 10/16/2010 05:12 PM 14,336 pygame.mixer_music.pyd 10/16/2010 05:12 PM 12,288 pygame.mouse.pyd 10/16/2010 05:12 PM 16,896 pygame.movie.pyd 10/16/2010 05:13 PM 9,728 pygame.overlay.pyd 10/16/2010 05:13 PM 38,400 pygame.pixelarray.pyd 10/16/2010 05:12 PM 28,160 pygame.rect.pyd 10/16/2010 05:12 PM 14,848 pygame.rwobject.pyd 10/16/2010 05:12 PM 14,336 pygame.scrap.pyd 10/16/2010 05:13 PM 231,936 pygame.surface.pyd 10/16/2010 05:13 PM 9,216 pygame.surflock.pyd 10/16/2010 05:13 PM 12,288 pygame.time.pyd 10/16/2010 05:13 PM 51,200 pygame.transform.pyd 10/16/2010 05:13 PM 13,824 pygame._arraysurfarray.pyd 10/16/2010 05:12 PM 9,728 pygame._numericsndarray.pyd 10/16/2010 05:12 PM 24,576 pygame._numericsurfarray.pyd 08/17/2010 07:21 AM 2,774,528 python26.dll 07/28/2010 09:39 AM 456,704 SDL.dll 07/28/2010 09:45 AM 772,096 SDL_image.dll 07/28/2010 09:45 AM 152,064 SDL_mixer.dll 07/28/2010 09:40 AM 477,184 SDL_ttf.dll 08/17/2010 07:34 AM 10,752 select.pyd 07/28/2010 09:47 AM 222,208 smpeg.dll 11/02/2010 03:23 PM 25,088 start.exe 08/17/2010 07:26 AM 587,776 unicodedata.pyd 08/17/2010 07:27 AM 111,616 _ctypes.pyd 08/17/2010 07:34 AM 470,528 _hashlib.pyd 08/17/2010 07:34 AM 31,232 _multiprocessing.pyd 08/17/2010 07:22 AM 45,568 _socket.pyd 08/17/2010 07:25 AM 1,166,336 _ssl.pyd So the good news is that I can now get py2exe to produce an .EXE that works but if I include the font file it won't work. BTW the font file wasn't in the dist\library.zip you sent me in the zip file. Zach