简体   繁体   English

Cx-Freeze错误 - Python 34

[英]Cx-Freeze Error - Python 34

I have a Cx_Freeze setup file that I am trying to make work. 我有一个Cx_Freeze安装文件,我正在努力工作。 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. 显示的错误不是通过控制台的Python异常,而是在尝试启动通过冻结生成的生成的exe文件时的崩溃报告。

'File 'notetest.py', line 1, in _find_and_load importlib_bootstrap.py, line 2214 'file'notetest.py',第1行,在_find_and_load importlib_bootstrap.py,第2214行

.... ....

AttributeError 'module' object has no attribute '_fix_up_module'

My setup.py file follows: 我的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)])

You should install cx_freeze from this site . 您应该从此站点安装cx_freeze。 It contains an important patch that solves the problem (see this discussion for detailed). 它包含一个解决问题的重要补丁(详见讨论)。

Apparently this is a known issue with Cx_Freeze. 显然这是Cx_Freeze的一个已知问题。 BitBucket . BitBucket

Apparently there is a compiling error that occurs. 显然会出现编译错误。 The bitbucket link lists the work-arounds. bitbucket链接列出了解决方法。

I had the same issue and the solution by Northcat worked just perfectly. 我有同样的问题,Northcat的解决方案工作得非常完美。 The issue of missing patch in the other cx_freeze came into picture while installing(some alert messages were thrown) it. 其他cx_freeze中缺少补丁的问题在安装时出现了问题(抛出了一些警报消息)。 It is this missing patch because of which the alerts were given. 这是一个缺失的补丁,因为它发出了警报。 The new installation from this link had no such alerts while installing and it so worked fine. 安装时,此链接中的新安装没有此类警报,因此工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM