ラベル py2exe の投稿を表示しています。 すべての投稿を表示
ラベル py2exe の投稿を表示しています。 すべての投稿を表示

2012年3月8日木曜日

py2exeでUnicodeDecodeError: 'utf8' codec can't decode byte 0x83 in position 32: invalid start byte

Traceback (most recent call last):
  File ".\setup.py", line 38, in <module>
    zipfile = None,
  File "C:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 243, in run
    self._run()
  File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 312, in _run
    self.create_binaries(py_files, extensions, dlls)
  File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 572, in create_
binaries
    arcname, target.script)
  File "C:\Python27\lib\site-packages\py2exe\build_exe.py", line 796, in build_e
xecutable
    exe_path = os.path.join(self.dist_dir, exe_base + ext)
  File "C:\Python27\lib\ntpath.py", line 108, in join
    path += "\\" + b
  File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x83 in position 32: invalid
start byte
とでたら、ソースをどっか他所へ、デスクトップではダメ。
多分、pythonのバグだと思うけれど。追求する時間がないので放置

py2exeでerror: MSVCP90.dll: No such file or directory

dllへのパス
sys.path.append(u'..\\path\\to\dll')
を追加

py2exeでRuntimeError: Could not find the matplotlib data files

py2exeでRuntimeError: Could not find the matplotlib data files
と出たら
data_files=matplotlib.get_py2exe_datafiles(),
を、setupに追加しよう。ここ

py2exeでDebug: src/helpers.cpp(140): 'CreateActCtx' failed with error

py2exeでDebug: src/helpers.cpp(140): 'CreateActCtx' failed with errorと出たら、
console=[u'mixer.py'],
から
windows=[u'mixer.py'],
wxPythonを使っているとき注意