level 1
王洪兵0704
楼主
用pygame编写了小游戏,想转成exe出现各种问题。用的是python2.7.9(win),谁能帮忙看一下啊,感激不尽!
———- python ———-
running py2exe
creating D:\python\Mydoc\PYGAME\PyGame\build
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe\collect-2.7
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe\bundle-2.7
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe\temp
creating D:\python\Mydoc\PYGAME\PyGame\dist
*** searching for required modules ***
Traceback (most recent call last):
File “game_to_exe.py”, line 172, in
BuildExe().run()
File “game_to_exe.py”, line 163, in run
data_files = extra_datas,
File “D:\python\lib\distutils\core.py”, line 151, in setup
dist.run_commands()
File “D:\python\lib\distutils\dist.py”, line 953, in run_commands
self.run_command(cmd)
File “D:\python\lib\distutils\dist.py”, line 972, in run_command
cmd_obj.run()
File “D:\python\lib\site-packages\py2exe\build_exe.py”, line 243, in run
self._run()
File “D:\python\lib\site-packages\py2exe\build_exe.py”, line 296, in _run
self.find_needed_modules(mf, required_files, required_modules)
File “D:\python\lib\site-packages\py2exe\build_exe.py”, line 1306, in find_needed_modules
mf.import_hook(f)
File “D:\python\lib\site-packages\py2exe\mf.py”, line 719, in import_hook
return Base.import_hook(self,name,caller,fromlist,level)
File “D:\python\lib\site-packages\py2exe\mf.py”, line 136, in import_hook
q, tail = self.find_head_package(parent, name)
File “D:\python\lib\site-packages\py2exe\mf.py”, line 181, in find_head_package
if ‘.’ in name:
TypeError: argument of type ‘module’ is not iterable
输出完毕 (耗时 27 秒) – 正常终止
2015年08月23日 13点08分
1
———- python ———-
running py2exe
creating D:\python\Mydoc\PYGAME\PyGame\build
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe\collect-2.7
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe\bundle-2.7
creating D:\python\Mydoc\PYGAME\PyGame\build\bdist.win32\winexe\temp
creating D:\python\Mydoc\PYGAME\PyGame\dist
*** searching for required modules ***
Traceback (most recent call last):
File “game_to_exe.py”, line 172, in
BuildExe().run()
File “game_to_exe.py”, line 163, in run
data_files = extra_datas,
File “D:\python\lib\distutils\core.py”, line 151, in setup
dist.run_commands()
File “D:\python\lib\distutils\dist.py”, line 953, in run_commands
self.run_command(cmd)
File “D:\python\lib\distutils\dist.py”, line 972, in run_command
cmd_obj.run()
File “D:\python\lib\site-packages\py2exe\build_exe.py”, line 243, in run
self._run()
File “D:\python\lib\site-packages\py2exe\build_exe.py”, line 296, in _run
self.find_needed_modules(mf, required_files, required_modules)
File “D:\python\lib\site-packages\py2exe\build_exe.py”, line 1306, in find_needed_modules
mf.import_hook(f)
File “D:\python\lib\site-packages\py2exe\mf.py”, line 719, in import_hook
return Base.import_hook(self,name,caller,fromlist,level)
File “D:\python\lib\site-packages\py2exe\mf.py”, line 136, in import_hook
q, tail = self.find_head_package(parent, name)
File “D:\python\lib\site-packages\py2exe\mf.py”, line 181, in find_head_package
if ‘.’ in name:
TypeError: argument of type ‘module’ is not iterable
输出完毕 (耗时 27 秒) – 正常终止