# The Problem
I'm trying to create an executable for a simple "hello world" app built in PyQt6. I have tried the commands `pyinstaller hello_world.py`, `pyinstaller --onefile hello_world.py`, and `pyinstaller --windowed hello_world.py`, and the resulting executable always fails with a `zsh: segmentation fault`. I have also tried running it from `pyinstaller hello_world.spec` with the same result.
# My Environment
I am using pyinstaller 5.12.0. I have also tried the download using `pip install
https://github.com/pyinstaller/pyinstaller/archive/develop.zip`. I am using python 3.9.16 in a conda environment.
I have an M1 (arm64) mac running Monterey 12.6.2
# Additional Info
I have also tried running the above commands using the code from this conversation, where a user was able to get pyinstaller working with a pyqt6 gui on a Mojave, M1 mac:
https://groups.google.com/g/pyinstaller/c/9lzdMY1eSrs/m/FyJoE9ljDwAJLet me know if there's any additional info that would help debug. I've tried all of the debugging steps I can find, but can't get off the ground with a working pyqt6 app.
# Files used
hello_world.py:
```
import sys
from PyQt6.QtWidgets import QApplication, QLabel, QWidget
app = QApplication(sys.argv)
window = QWidget()
window.setWindowTitle("Hello World")
window.setGeometry(100, 100, 300, 100)
hello_label = QLabel("<h1>Hello World!</h1>", parent=window)
hello_label.move(75, 30)
window.show()
sys.exit(app.exec())
```
hello_world.spec:
```
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['hello_world.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=['PyQt6.QtWidgets'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
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='hello_world',
debug=True,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
```