python - cx_Freeze: cannot input ExcelFormulaParser -
so trying compile code .exe using cx_freeze.
here code using compile it...
from cx_freeze import setup, executable import sys import numpy.core._methods import numpy.lib.format xlwt import excelformulaparser additional_mods = ['numpy.core._methods', 'numpy.lib.format'] setup(name='reconapp', version='0.1', description='xyz.script', options = {'build_exe': {'includes': additional_mods}}, executables = [executable("reconciliation_application.py")])
the code compiles enter image description herewith no errors. when go run .exe program launches , closes error.
i notice not inside xlwt module excelformulaparser not know error is.
any suggestions?
try add xlwt library setup options, i.e.
import sys, os cx_freeze import setup, executable build_exe_options = {"packages": ["numpy", "matplotlib", "xlwt"]} setup( name = "app", version = "1.0", description = "app ...", options = {"build_exe": build_exe_options}, executables = [executable("app.py", base = "win32gui")])
Comments
Post a Comment