Cx冻结错误-Python 34 [英] Cx-Freeze Error - Python 34
问题描述
我有一个Cx_Freeze设置文件,我正在尝试使其工作。令人沮丧的是,它用于适当冻结。但是,现在出现以下错误:
edit。显示的错误不是通过控制台的Python异常,而是尝试启动通过冻结生成的结果exe文件时的崩溃报告。
文件'notetest.py',第1行,在
_find_and_load importlib_bootstrap.py,第2214行
....
AttributeError'module'对象没有属性'_fix_up_module'
我的setup.py文件如下:
导入sys
import os
from cx_Freeze导入设置,可执行
build_exe_options = {'packages':[],'excludes':[]}
base ='Win32 '
exe =可执行文件(
script ='notetest.py',
initScript = None,
base ='Win32GUI',
targetName ='MedicaidAid.exe' ,
compress = True,
appendScriptToExe = True,
appendScriptToLibrary = True,
icon = None
)
setup(name ='医疗补助,
版本='0.85',
说明='MedicaidAid软件',
选项= {'build_exe':build_exe_options},
可执行文件= [Executable('notetest.py' ,base = base)])
您应该安装cx_freeze来自此站点。它包含一个解决该问题的重要补丁(请参见此详细讨论)。
I have a Cx_Freeze setup file that I am trying to make work. What is terribly frustrating is that it used to Freeze appropriately. Now, however, I get the following error:
edit. the error that shows up is not a Python exception through the console, but a crash report when attempting to launch the resulting exe file generated through the freeze.
'File 'notetest.py', line 1, in _find_and_load importlib_bootstrap.py, line 2214
....
AttributeError 'module' object has no attribute '_fix_up_module'
My setup.py file follows:
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)])
You should install cx_freeze from this site. It contains an important patch that solves the problem (see this discussion for detailed).
这篇关于Cx冻结错误-Python 34的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!