|
|
|
|
|
 Re: 求解py2exe使用问题 - limodou [ 2005-04-19 18:31 | 72 byte(s)]
 Re: 求解py2exe使用问题 - gutounan [ 2005-04-27 17:07 | 92 byte(s)]
 Re: 求解py2exe使用问题 - JerryKingKing [ 2005-04-21 09:40 | 398 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
每次使用都不成功,最后总出现这种报错,编译不过。如何解决呢?谢谢!我用的是win2000+py2.3
setting sys.winver for 'C:Documents and Settingswangzhe桌面distpython23.dll
' to 'py2exe'
Traceback (most recent call last):
File "setup.py", line 5, in ?
setup(windows=["MSGUI.py"])
File "C:Python23libdistutilscore.py", line 149, in setup
dist.run_commands()
File "C:Python23libdistutilsdist.py", line 907, in run_commands
self.run_command(cmd)
File "C:Python23libdistutilsdist.py", line 927, in run_command
cmd_obj.run()
File "C:PYTHON23Libsite-packagespy2exeuild_exe.py", line 183, in run
self._run()
File "C:PYTHON23Libsite-packagespy2exeuild_exe.py", line 234, in _run
self.create_binaries(py_files, extensions, dlls)
File "C:PYTHON23Libsite-packagespy2exeuild_exe.py", line 424, in create_
binaries
self.patch_python_dll_winver(dll)
File "C:PYTHON23Libsite-packagespy2exeuild_exe.py", line 727, in patch_p
ython_dll_winver
add_resource(unicode(dll_name), data, RT_STRING, id, delete)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 34: ordinal
not in range(128)
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
还有一问题!就是图形Pmw模块好像无法编译进去。如何修改呢?执行exe文件后错误是:
Traceback (most recent call last):
File "MsgStructGUI.py", line 3, in ?
File "Pmw\__init__.pyc", line 28, in ?
WindowsError: [Errno 3] : 'D:\py2exe2\dist\library.zip\Pmw/*.*'
在library.zip\Pmw中只有__init__.pyc文件,好像少了什么。
|
|
|
[Original]
[Print]
[Top]
|
|
|