hi
i am trying to convert a python (flippy.py) file with pygame into exe. i got the following flippy.exe.log error messages:
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import display: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import draw: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import image: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import pixelcopy: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import transform: No module named _view
(ImportError: No module named _view)
Traceback (most recent call last):
File "flippy.py", line 518, in <module>
File "flippy.py", line 49, in main
File "pygame\__init__.pyc", line 70, in __getattr__
NotImplementedError: display module not available
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import display: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import draw: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import image: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import pixelcopy: No module named _view
(ImportError: No module named _view)
C:\Python27\src\data\Othello\dist\flippy.exe:10: RuntimeWarning: import transform: No module named _view
(ImportError: No module named _view)
Traceback (most recent call last):
File "flippy.py", line 518, in <module>
File "flippy.py", line 49, in main
File "pygame\__init__.pyc", line 70, in __getattr__
NotImplementedError: display module not available
(ImportError: No module named _view)
and the setup file is:
"""
pygamesetup.py
to be run in cmd window.
pygamesetup.py py2exe
"""
from distutils.core import setup
import py2exe
setup(
windows = [{"script": "flippy.py"}],
data_files = [(".", ["flippybackground.png", "flippyboard.png"])]
)
i looked every where i can find in the web, but i got the similar errors.
any help will be appreciated.
i like to add that the flippy.py run fine when i double click it.