[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Problem with py2exe and font.pyd



Hi,

this post seems to have a solution to that problem:
http://blog.thadeusb.com/tag/memoryloadlibrary/

What dlls do you have in that directory?  Are SDL.dll and SDL_ttf.dll
being copied?

cheers,




On Tue, Aug 18, 2009 at 3:25 PM, John Eriksson<john@xxxxxxxxxxxx> wrote:
> Hi,
>
> I'm trying to use py2exe and get the following error when wxwcuting
> the exe file.
>
> C:\Users\john\workspace\FlickrBackupTool\src\FlickrTagTool\FlickrTagTool.exe\lib\GameGUI.py:40:
> RuntimeWarning: use font: MemoryLoadLibrary failed loading
> pygame\font.pyd
> (ImportError: MemoryLoadLibrary failed loading pygame\font.pyd)
> Traceback (most recent call last):
>  File "FlickrTagTool.py", line 758, in <module>
>  File "FlickrTagTool.py", line 754, in main
>  File "FlickrTagTool.py", line 737, in main_loop
>  File "FlickrTagTool.py", line 221, in __init__
>  File "FlickrTagTool.py", line 327, in setup_gui
>  File "lib\GameGUI.pyo", line 40, in load_font
>  File "pygame\__init__.pyo", line 70, in __getattr__
> NotImplementedError: font module not available
> (ImportError: MemoryLoadLibrary failed loading pygame\font.pyd)
>
> But when I looked in the location where other pygame/*.pyd files is
> located it's there.
>
> I'm using Windows7, Python 2.6 and Pygame 1.9.1
>
> Please advice!
>
> Best Regards
> /John Eriksson
>