ウィンドウに QWebView 要素を 1 つ追加するまで、私の cx_freeze ビルドは正しく機能していました。これは、QtWebKit をインポートする必要があることを意味しますよね? Linux では、すべてが完全に機能します。Windows で main.py ファイルを実行すると、すべてが完全に機能します。
.exe にフリーズすると、次のエラーが発生します。これは私の install.py ファイルです:
from cx_Freeze import setup, Executable
includes=["re","PyQt4.QtWebKit"]
exe = Executable(
script="main.pyw",
base="Win32GUI",
targetName = "LEX.exe"
)
setup(
name = "blabla",
version = "1.3",
description = "My application",
options = {"build_exe": {"includes":includes}},
executables = [exe]
)
x64 Windows 7 でビルドしていますが、x86 バージョンの PyQt4 と Python3.2 x86 を使用しています。その QWebView 要素の前には、まったく問題はありませんでした。