I wrote a css-js minifier in Python 3.6, using the module https://github.com/juancarlospaco/css-html-js-minify and PyQt5 for GUI.
Then, I used cx_freeze to compile the .exe.
The .exe runs perfectly on my computer (windows 10), but crashes on windows 7.
Details on the error-log:
- APPCRASH
- exception code: 40000015
- ucrtbase.DLL
Here is my setup.py for cx_freeze:
import os
import sys
import cx_Freeze
from app_info import APP_INFO
# have to make sure args looks right
sys.argv = sys.argv[:1] + ['build']
app_path = os.path.join(os.path.dirname(__file__), "src", "gui.py")
if sys.platform == 'win32':
executables = [cx_Freeze.Executable(
app_path,
targetName=APP_INFO.APP_NAME + ".exe",
icon=os.path.join('icons', 'icon.ico'),
base="Win32GUI")]
else:
executables = [cx_Freeze.Executable(
app_path,
targetName=APP_INFO.APP_NAME,
icon=os.path.join('icons', 'icon.png'))]
include_files = [
os.path.join("icons", 'icon.ico'),
'C:\\Windows\\System32\\ucrtbase.dll'
]
options = {
'build_exe': {
"include_files": include_files,
"packages": ["asyncio"]
}
}
cx_Freeze.setup(
name=APP_INFO.APP_NAME,
version=_get_ver_string(),
executables=executables,
options=options
)
Could it be caused by the usage of threads in the css-html-js-minify module ?
Thanks in advance for any ideas...