I want to make a runnable program using python and cx_Freeze.
The script uses the csv, socket, ipaddress, threading and tkinter packages. When I open the tool I see the error message displayed below.
Is this a problem with imports? Or am I doing something wrong?
This is how my setup script looks like:
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["tkinter","socket","csv","struct","threading","ipaddress"], "excludes": []}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if (sys.platform == "win32"):
base = "Win32GUI"
setup(
name = "CSV Tool",
version = "0.1",
description = "Tool to work with data to create CSV to import with uCMDB",
options = {"build_exe": build_exe_options},
executables = [Executable("csv_tool.py", base = base)])
PS: It is a win8.1 64 bit system with python3.4
Thanks in advance for any help
As Thomas commented, the cx_Freeze setup from this site helps to prevent the error.