Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Error when building/packaging Pyside6 6.5.1.1
Qt 6.12 LTS is out! See what's new in the release blog

Error when building/packaging Pyside6 6.5.1.1

Scheduled Pinned Locked Moved Solved Qt for Python
2 Posts 1 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Stefan ScherfkeS Offline
    Stefan ScherfkeS Offline
    Stefan Scherfke
    wrote on last edited by Stefan Scherfke
    #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=pyside6
    

    I 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-docs
    

    How can I debug the problem to find it's source? I cannot find the string(s) PREFIX/modules or even modules in the work dir, so I have no idea where to start looking.

    I am using:

    • Python 3.10.11
    • Setuptools 67.6.1
    1 Reply Last reply
    1
    • Stefan ScherfkeS Offline
      Stefan ScherfkeS Offline
      Stefan Scherfke
      wrote on last edited by
      #2

      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 (and metatypes) 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.

      1 Reply Last reply
      0
      • Stefan ScherfkeS Stefan Scherfke has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved