2012年8月27日月曜日

[python]py2exe で RuntimeError: EndUpdateResource

python setup.py py2exe でエラーが。

RuntimeError: EndUpdateResource: 指定されたデバイスまたはファイルを開けません。
なんだこれ。


Turns out it was anti-malware software (panda cloud)  i installed that interferred with the creation of the executable.
Since i uninstalled the software everything works smooth.
ウイルスソフト?
一時的にオフにしてやってみるとできたー。

マジでか。

setup.py はこんなやつ。

# -*- coding: utf-8 -*-
from distutils.core import setup
import py2exe

py2exe_options = {
    "compressed": 1, #圧縮する
    "optimize": 2,
#    "bundle_files": 2,# dllとexeが別
    "bundle_files": 1,# 1ファイル
}

setup(
    options = {"py2exe": py2exe_options},
    name="hello",
    console=["hello.py"],
#    data_files=[("static", glob.glob("static\\*.html")), ("templates", glob.glob("templates\\*.html"))],
    zipfile = None,
)

0 件のコメント:

コメントを投稿