Python Forum

Full Version: cx_freeze exe error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Manage to generate the exe file but comes with error when trying to running it .
below is my code and the error message.
anything wrong with the code?
from cx_Freeze import setup, Executable
import os
import sys

os.environ['TCL_LIBRARY'] = r'C:\ProgramData\Miniconda3\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\ProgramData\Miniconda3\tcl\tk8.6'

build_exe_options = {"packages": ["os","tkinter","tkinter.ttk","glob","pandas"],
                     "include_files": [(r"c:\ProgramData\Miniconda3\DLLs\tcl86t.dll"),(r"c:\ProgramData\Miniconda3\DLLs\tk86t.dll")],
                     "excludes": []
                    }

executables = [Executable("Merge.py",base="Win32GUI")]

setup(
    name = "<Merge>",
    options = {"build_exe": build_exe_options},
    version = "1.1.1.1",
    description = "Merge1.0",
    executables = executables
Error message:-

Problem Event Name: APPCRASH
Application Name: Merge.exe
Application Version: 1.1.1.1
Application Timestamp: 59fe3eec
Fault Module Name: ucrtbase.DLL