我在Python 3.6中编写了一个css-js minifier,使用模块https://github.com/juancarlospaco/css-html-js-minify和PyQt5 for GUI。
然后,我使用cx_freeze编译.exe。
.exe在我的电脑上完美运行(Windows 10),但在Windows 7上崩溃。
错误日志的详细信息:
这是我的cx_freeze的setup.py:
import os
import sys
import cx_Freeze
from app_info import APP_INFO
# have to make sure args looks right
sys.argv = sys.argv[:1] + ['build']
app_path = os.path.join(os.path.dirname(__file__), "src", "gui.py")
if sys.platform == 'win32':
executables = [cx_Freeze.Executable(
app_path,
targetName=APP_INFO.APP_NAME + ".exe",
icon=os.path.join('icons', 'icon.ico'),
base="Win32GUI")]
else:
executables = [cx_Freeze.Executable(
app_path,
targetName=APP_INFO.APP_NAME,
icon=os.path.join('icons', 'icon.png'))]
include_files = [
os.path.join("icons", 'icon.ico'),
'C:\\Windows\\System32\\ucrtbase.dll'
]
options = {
'build_exe': {
"include_files": include_files,
"packages": ["asyncio"]
}
}
cx_Freeze.setup(
name=APP_INFO.APP_NAME,
version=_get_ver_string(),
executables=executables,
options=options
)
是否可能是由于css-html-js-minify模块中线程的使用造成的?
提前感谢任何想法...