我有一个Cx_Freeze安装文件,现在想让它正常工作,但令人沮丧的是它曾经能够正确地冻结。然而,现在我遇到了以下错误:
编辑:出现的错误不是Python异常,而是尝试启动结果exe文件时出现的崩溃报告。
'File 'notetest.py', line 1, in _find_and_load importlib_bootstrap.py, line 2214
....
AttributeError 'module' object has no attribute '_fix_up_module'
这是我的 setup.py 文件:
import sys
import os
from cx_Freeze import setup, Executable
build_exe_options = {'packages': [], 'excludes' : []}
base = 'Win32GUI'
exe = Executable(
script = 'notetest.py',
initScript = None,
base = 'Win32GUI',
targetName = 'MedicaidAid.exe',
compress = True,
appendScriptToExe = True,
appendScriptToLibrary = True,
icon = None
)
setup( name = 'MedicaidAid',
version = '0.85',
description = 'MedicaidAid Software',
options = {'build_exe': build_exe_options},
executables = [Executable('notetest.py', base = base)])