I have a simple app built from a python script, heatplotter.py, which
utilizes
PyQt and pyqtgraph.
I'm able to run pyinstaller on my .spec file and create a functioning app.
It runs fine from the terminal.
However, when I click on the .app icon, the icon bounces in the system
tray, then closes, and, after about 15 seconds, re-opens. I've never had
this happen before. Of course, this annoying, and I'd like to prevent it
from happening.
Any guesses as to the reason? Here's my .spec file:
# -*- mode: python ; coding: utf-8 -*-
import os.path
block_cipher = None
data=collect_data_files('PyQt5')
a = Analysis(
['heatplotter.py'],
pathex=[],
binaries=[],
datas=data,
hiddenimports=['pyqtgraph'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=['PySide6'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='MyApplication',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
app = BUNDLE(
exe,
name='MyApplication.app',
icon=None,
bundle_identifier=None,
)
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/68616ce5-30c3-47fb-a4b1-76675d3374ffn%40googlegroups.com.