I'm trying to convert my tkinter python script into exe with cx_Freeze. From now on, I've dealt with many common problems TCL-TK, DLL and idna. It seems I solved them but now I have another problem. When I try to run the exe version of the application, I get the following error:
ImportError: The 'six' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.
import cx_Freeze
import sys
import os.path
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl','tcl8.6')
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
executables = [cx_Freeze.Executable ("SeeWord.py", base=base)]
cx_Freeze.setup(name="SeeWord",
options= {"build_exe": {"packages": ["idna", "tkinter",
"MySQLdb", "requests",
"bs4","re","random","win10toast","time","datetime","threading"] }},
version="0.01",
description="vocabulary application",
executables = executables)