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

[pygame] cx_Freeze and Pygame Font module



Hey everyone

I'm trying to get to know cx_freeze as an alternative to py2exe but I've run into some problems. There don't seem to be any errors in creating the exe, however when running the exe there are complaints about missing modules and DLL Load Errors (see below for the error message).

I am using Python 2.7 (32-bit) on Windows 7 SP1 (64-bit). Tell me if there is anything else I have to post and I will do my best.

Thanks in advance for your help.

------------------------------

D:\home\Dropbox\code\eclipse-workspace\TestGame01\build\exe.win32-2.7>main
main:1: RuntimeWarning: import display: No module named _view
(ImportError: No module named _view)
main:1: RuntimeWarning: import draw: No module named _view
(ImportError: No module named _view)
main:1: RuntimeWarning: import image: No module named _view
(ImportError: No module named _view)
main:1: RuntimeWarning: import pixelcopy: No module named _view
(ImportError: No module named _view)
main:1: RuntimeWarning: import transform: No module named _view
(ImportError: No module named _view)
main:10: RuntimeWarning: use font: DLL load failed: %1 is not a valid Win32 appl
ication.
(ImportError: DLL load failed: %1 is not a valid Win32 application.)
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27
, in <module>
    exec code in m.__dict__
  File "main.py", line 10, in <module>
  File "C:\Python27\lib\site-packages\pygame\__init__.py", line 70, in __getattr
__
    raise NotImplementedError(MissingPygameModule)
NotImplementedError: font module not available
(ImportError: DLL load failed: %1 is not a valid Win32 application.)