I am trying, and reeaally trying to make this work, but it just aint working. I am trying to create an executable of a program with multiple files that imports all kinds of modules. I therefore created the following setup.py file:
import cx_Freeze
executables = [cx_Freeze.Executable("MainRunner_noDC_v4.py")]
cx_Freeze.setup(
name = "EGDA",
version = "0.01",
options={"build_exe":{"packages":["numpy","os", "time","matplotlib.pyplot","matplotlib.backends", "datetime","openpyxl","mpl_toolkits.basemap"],
"include_files":["AcquireData_v1.py", "EarthMapping.py","CoordinateConversion_v1.py", "MainRunnerFunctions_noDC_v3.py","Regression_v2.py","Visualization_v2.py", "CheckTime_noDC_v1.py", "Example.xlsx"],
"excludes": ["collections.abc"]}},
description = "EGDA is a earthquake gps data analysis program",
executables = executables
)
I had to add the excludes, as otherwise cx_Freeze wouldnt allow me to build this.
Then I get very everything built, however accessing the exe file in the build folder will only flash open the cmd and close it again. I opened the exe therefore through cmd, and it thus produced the following error:
IOError: proj data directory not found. Expecting it at: C:\Users\Marco DS\Desktop\EGDA\build\exe.win32-2.7\library.zip\mpl_toolkits\basemap\data
I have literally tried for hours to make this work, so any help is highly welcome. Thanks!