Cx-Freeze 错误 - Python 34
我有一个用Cx_Freeze制作的设置文件,想让它正常工作。让我感到非常沮丧的是,它以前可以正常打包,但现在却出现了以下错误:
补充一下,这个错误不是在控制台中显示的Python异常,而是在尝试启动通过打包生成的exe文件时出现的崩溃报告。
'文件 'notetest.py',第1行,在 _find_and_load 中 importlib_bootstrap.py,第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)])