[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] pygame2exe does not work




Thanks for the solution. 

On Tue, Aug 07, 2001 at 12:00:15PM -0700, Pete Shinners wrote:
> Michael Teo wrote:
> > I have tried to create an executable version of pygris
> > using py2exe v0.2.6. The compilation runs without any
> > errors. However, when I run the executable, I get this
> > error of data/pygris-large.png is not a Windows BMP file.
> 
> this is easy to fix. pygame needs the "imageext.pyd" module
> when running. py2exe doesn't find this dependency by itself,
> so you must include it by hand.
> 
> either include it in the list of dependencies when calling
> "py2exe --force-imports pygame.imageext"
> 
> another way you can do it is simply copy the imageext.pyd
> into the final directory. the imageext module depends on
> SDL_image.dll, so you will likely need a copy of that too
> if you do it by hand.
> 
> ____________________________________
> pygame mailing list
> pygame-users@seul.org
> http://pygame.seul.org

-- 
Michael Teo <mailto:michaelteo@bigfoot.com>
http://miketeo.net/
PGP  0x6C846A9C  DB:7D:51:D4:4D:AB:97:79:E4:68:D9:07:94:36:D5:1A:6C:84:6A:9C
     0x6937FB05  08:50:A1:4D:2E:45:58:60:DE:71:1F:30:63:54:EF:7B

PGP signature