Error when building/packaging Pyside6 6.5.1.1
-
I get an error when building/packaging Pyside6 6.5.1.1 for Qt6 6.5.1. The build scripts worked for versions 6.4.3 and before but fail with the new version.
These are the last lines of output:
-- Build files have been written to: $SRC_DIR/build/qfp-py3.10-qt6.5.1-64bit-release/build/pyside-tools [INFO]: -- Compiling module pyside-tools... ninja: no work to do. [INFO]: -- Skipped documentation generation. Enable with '--build-docs' [INFO]: Installing module pyside-tools... [0/1] Install the project... -- Install configuration: "Release" [INFO]: Using /opt/emsconda/bin/patchelf ... [INFO]: Preparing setup tools build directory. [INFO]: Removing /opt/emsconda/conda-bld/pyside6_1686858905124/work/build/qfp-py3.10-qt6.5.1-64bit-release/package [INFO]: Copying files... [INFO]: Making file /opt/emsconda/conda-bld/pyside6_1686858905124/work/build/qfp-py3.10-qt6.5.1-64bit-release/package/PySide6/scripts/__init__.py. error: [Errno 2] No such file or directory: '/opt/emsconda/conda-bld/pyside6_1686858905124/_h_env_placeh old_pl/modules' setup.py/prepare_packages: [Errno 2] No such file or directory: '$PREFIX/modules' Traceback (most recent call last): File "/opt/emsconda/conda-bld/pyside6_1686858905124/work/setup.py", line 42, in <module> setup_runner.run_setup() File "/opt/emsconda/conda-bld/pyside6_1686858905124/work/build_scripts/setup_runner.py", line 263, in run_setup raise RuntimeError(msg) RuntimeError:· setup.py invocation failed with exit code: 1. setup.py invocation was: /opt/emsconda/conda-bld/pyside6_1686858905124/_h_env/bin/python setup.py install --prefix=/opt/emsconda/conda-bld/pyside6_1686858905124/_h_env --qtpaths=/opt/emsconda/conda-bld/pyside6_1686858905124/_h_env/bin/qtpaths --cmake=/opt/emsconda/conda-bld/pyside6_1686858905124/_h_env/bin/cmake --rpath=/opt/emsconda/conda-bld/pyside6_1686858905124/_h_env/lib --ignore-git --parallel=6 --no-qt-tools --skip-docs --internal-build-type=pyside6I think the final error is
setup.py/prepare_packages: [Errno 2] No such file or directory: '$PREFIX/modules'This is the build command:
$PYTHON setup.py install --prefix=$PREFIX \ --qtpaths=$PREFIX/bin/qtpaths \ --cmake=$PREFIX/bin/cmake \ --rpath=$PREFIX/lib \ --ignore-git \ --parallel=${CPU_COUNT} \ --no-qt-tools \ --skip-docsHow can I debug the problem to find it's source? I cannot find the string(s)
PREFIX/modulesor evenmodulesin the work dir, so I have no idea where to start looking.I am using:
- Python 3.10.11
- Setuptools 67.6.1
-
I found the Problem.
I configured Qt6.5 with
-bindir $PREFIX/bin \ -libdir $PREFIX/lib \ -headerdir $PREFIX/include/qt6 \ -archdatadir $PREFIX/lib/qt6 \ -datadir $PREFIX/share/qt6 \This caused the
modules(andmetatypes) directories to be created under$PREFIX/share/qt6/....However, setup scripts of Pyside6 are hardcoded to use
LIB_DIR.parent / "modules"which does not work.I removed the config flags in Qt and it worked.
-
S Stefan Scherfke has marked this topic as solved on