pyside6-deploy failing on macOS
-
I'm trying to set up a GitHub Actions workflow that builds my (relatively simple) PySide6 app on Linux, Windows, and macOS. The repo for it is here, for reference.
I've got the Linux build working. The macOS build is failing though, with:
Run mkdir build mkdir build uv run pyside6-deploy -c mac.spec test -e build/mora_the_explorer.app/Contents/MacOS/mora_the_explorer || exit 1 shell: /bin/bash -e {0} env: pythonLocation: /Users/runner/hostedtoolcache/Python/3.13.13/arm64 PKG_CONFIG_PATH: /Users/runner/hostedtoolcache/Python/3.13.13/arm64/lib/pkgconfig Python_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.13.13/arm64 Python2_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.13.13/arm64 Python3_ROOT_DIR: /Users/runner/hostedtoolcache/Python/3.13.13/arm64 UV_PYTHON_INSTALL_DIR: /Users/runner/work/_temp/uv-python-dir UV_CACHE_DIR: /Users/runner/work/_temp/setup-uv-cache WARNING:root:[DEPLOY] Unable to resolve a valid project file. Proceeding without a project file. Details: No project file found in the current directory. FATAL: Error, failed to find path '@rpath/QtVirtualKeyboardQml.framework/Versions/A/QtVirtualKeyboardQml' (resolved DLL to '/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/Qt/plugins/platforminputcontexts/QtVirtualKeyboardQml.framework/Versions/A/QtVirtualKeyboardQml') for binary '/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/Qt/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.dylib' from package 'PySide6', please report the bug. Using tomllib for parsing TOML content [DEPLOY] Exception occurred: Traceback (most recent call last): File "/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/scripts/deploy_lib/commands.py", line 27, in run_command subprocess.check_call(command, shell=is_windows) ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 419, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '[PosixPath('/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/bin/python'), '-m', 'nuitka', '/Users/runner/work/mora-the-explorer/mora-the-explorer/src/main.py', '--follow-imports', '--enable-plugin=pyside6', '--output-dir=/Users/runner/work/mora-the-explorer/mora-the-explorer/src/deployment', '--quiet', '--noinclude-qt-translations', '--noinclude-dlls=*QtVirtualKeyboardQml*', '--standalone', '--macos-create-app-bundle', '--noinclude-dlls=*.cpp.o', '--noinclude-dlls=*.qsb', '--macos-app-icon=/Users/runner/work/mora-the-explorer/mora-the-explorer/explorer.icns', '--include-qt-plugins=platforminputcontexts']' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/scripts/deploy.py", line 153, in main command_str = nuitka.create_executable(source_file=config.source_file, extra_args=config.extra_args, ...<5 lines>... permissions=config.permissions, mode=config.mode) File "/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/scripts/deploy_lib/nuitka_helper.py", line 178, in create_executable command_str, _ = run_command(command=command, dry_run=dry_run) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/scripts/deploy_lib/commands.py", line 33, in run_command raise RuntimeError( ...<2 lines>... ) RuntimeError: [DEPLOY] Command /Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/bin/python -m nuitka /Users/runner/work/mora-the-explorer/mora-the-explorer/src/main.py --follow-imports --enable-plugin=pyside6 --output-dir=/Users/runner/work/mora-the-explorer/mora-the-explorer/src/deployment --quiet --noinclude-qt-translations --noinclude-dlls=*QtVirtualKeyboardQml* --standalone --macos-create-app-bundle --noinclude-dlls=*.cpp.o --noinclude-dlls=*.qsb --macos-app-icon=/Users/runner/work/mora-the-explorer/mora-the-explorer/explorer.icns --include-qt-plugins=platforminputcontexts failed with error Command '[PosixPath('/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/bin/python'), '-m', 'nuitka', '/Users/runner/work/mora-the-explorer/mora-the-explorer/src/main.py', '--follow-imports', '--enable-plugin=pyside6', '--output-dir=/Users/runner/work/mora-the-explorer/mora-the-explorer/src/deployment', '--quiet', '--noinclude-qt-translations', '--noinclude-dlls=*QtVirtualKeyboardQml*', '--standalone', '--macos-create-app-bundle', '--noinclude-dlls=*.cpp.o', '--noinclude-dlls=*.qsb', '--macos-app-icon=/Users/runner/work/mora-the-explorer/mora-the-explorer/explorer.icns', '--include-qt-plugins=platforminputcontexts']' returned non-zero exit status 1. and return_code1 [DEPLOY] Executed file created in /Users/runner/work/mora-the-explorer/mora-the-explorer/build/mora_the_explorer.app Error: Process completed with exit code 1.with the key error, presumably, being
FATAL: Error, failed to find path '@rpath/QtVirtualKeyboardQml.framework/Versions/A/QtVirtualKeyboardQml' (resolved DLL to '/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/Qt/plugins/platforminputcontexts/QtVirtualKeyboardQml.framework/Versions/A/QtVirtualKeyboardQml') for binary '/Users/runner/work/mora-the-explorer/mora-the-explorer/.venv/lib/python3.13/site-packages/PySide6/Qt/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.dylib' from package 'PySide6', please report the bug.Even with help from Claude this is to me fairly impenetrable and I haven't been able to fix it by trying a few things.
One thing I am not doing currently is installing any dependencies at the start of the workflow, though I've tried installing Qt first using this action and it made no difference, despite prioritising the system installation over that included in PySide.
I also haven't been able to find anything on the bug tracker or in the forum related to this, though macOS issues don't seem uncommon. Is this a known bug?
If not, I suppose I ought to do as instructed by the error message and report it.
-
seems like an issue with Nuitka. I created a bug here - https://qt-project.atlassian.net/browse/PYSIDE-3312 in Qt for Python, but this actually would need a bug to be filed in Nuitka which i can do soon.