
Os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t. This can be done with: include_files = [os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'), Options=,Įxecutables = įor other cx_Freeze versions, the DLLs need to be included directly in the build directory. You need to pass this include_files list to the build_exe options in the setup call (and you should also pass the baseyou have defined to the Executable): setup( You can do that by passing a tuple (source, destination) to the corresponding entry of the include_files list option: include_files = [(os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'), os.path.join('lib', 'tk86t.dll')),

You need to tell cx_Freeze to include the TCL and TK DLLs in the build directory.įor cx_Freeze 5.1.1 (the current version) or 5.1.0, the DLLs need to be included in a lib subdirectory of the build directory. ImportError: DLL load failed: The specified module could not be found. For explanations of other shared CX-Programmer functions, refer to the CX-Program-mer Operation.
Cx programmer could not open file how to#
Import _tkinter # If this fails your Python may not be configured for Tk Contents CXONE-ALD-V4 CX-Programmer Operation Manual Function Blocks/Structured Text W447 (this manual) Explains how to use the CX-Programmer software’s function block and structured text functions. The flashing screen contains the following traceback:įile "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\site-packages\cx_Freeze\initscripts_startup_.py", line 14, in runįile "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\site-packages\cx_Freeze\initscripts\Console.py", line 26, in runįile "C:\Users\X\AppData\Local\Programs\Python\Python37\lib\tkinter_init_.py", line 36, in Os.environ = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') Os.environ = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6') PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os._file_)) My setup.py is this: from cx_Freeze import setup,Executable
Cx programmer could not open file windows#
If briefly seems to flash a windows but then disappears. However, when I attempt to open the exe file, it simply doesn't open.

When I attempt to build the exe, it seems to work perfectly: it raises no errors and creates the build folder containing the exe file.

Import random, time, bluetooth, json, sys, os I am attempting to build an exe using cx_Freeze which uses several modules: import tkinter as tk
