MAIN QUESTIONS: Does anyone know why I'm not getting reproducible error messaging on a Pyinstaller application? Is there some temporary data/memory stored after/between pyinstaller .exe runs that I'm missing?
DETAILS:
The first time I run it I see an error pop up and the application closes very quickly, the second time no error populates and it closes after some time.
Note: I've tried
The only way I can get the error to show again is by recompiling the application.
here's my .spec
file...
# -*- mode: python ; coding: utf-8 -*-
import sys
import os
site_packages_dir = next(p for p in sys.path if 'site-packages' in p)
block_cipher = None
a = Analysis(['src\\dag\\app.py'],
pathex=['.\\src\\'], # added so relative imports work
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
# include assets folder in dist: https://stackoverflow.com/a/42061755/12728698
a.datas += Tree('.\\assets', prefix='assets\\')
site_packages_list = ['distributed']
for package in site_packages_list:
a.datas += Tree(os.path.join(site_packages_dir, package), prefix=(package + '\\'))
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
[],
exclude_binaries=True,
name='app',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='app')