Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. PySide6 pyside-setup build
QtWS25 Last Chance

PySide6 pyside-setup build

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 500 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.
  • F Offline
    F Offline
    fclushio
    wrote on 18 Oct 2021, 20:12 last edited by
    #1

    Greetings!
    I encountered minor problem while building.

    I don't know how to fix it since I've provided all prerequisites mentioned in https://pypi.org/project/PySide6/

    I have in path:
    .../6.2.0/msvc2019_64/bin
    .../libclang
    Ran from Developer command Prompt for VS 2019

    a822cd10-bf53-4d9b-b354-02de1e0227f5-image.png

    D:\a\dev\__clones\pyside-setup>python setup.py build --qmake="D:/a/pr/Qt/6.2.0/msvc2019_64/bin/qmake.exe" --parallel=8
    D:\a\pr\Python38\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
      warnings.warn(
    D:\a\pr\Python38\lib\site-packages\setuptools\distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
      warnings.warn(
    running build
    CMake Warning at CMakeLists.txt:4 (find_package):
      Could not find a configuration file for package "Qt6" that is compatible
      with requested version "".
    
      The following configuration files were considered but not accepted:
    
        D:/a/pr/Qt/6.2.0/msvc2019_64/lib/cmake/Qt6/Qt6Config.cmake, version: 6.2.0 (64bit)
    
    
    
    CMake Error at CMakeLists.txt:6 (get_target_property):
      get_target_property() called with non-existent target "Qt6::Core".
    
    
    Traceback (most recent call last):
      File "setup.py", line 78, in <module>
        setup_runner.run_setup()
      File "D:\a\dev\__clones\pyside-setup\build_scripts\setup_runner.py", line 125, in run_setup
        self.run_setuptools_setup()
      File "D:\a\dev\__clones\pyside-setup\build_scripts\setup_runner.py", line 181, in run_setuptools_setup
        setup(**kwargs)
      File "D:\a\pr\Python38\lib\site-packages\setuptools\__init__.py", line 165, in setup
        return distutils.core.setup(**attrs)
      File "D:\a\pr\Python38\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "D:\a\pr\Python38\lib\distutils\dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "D:\a\pr\Python38\lib\distutils\dist.py", line 985, in run_command
        cmd_obj.run()
      File "D:\a\dev\__clones\pyside-setup\build_scripts\main.py", line 472, in run
        prepare_build()
      File "D:\a\dev\__clones\pyside-setup\build_scripts\main.py", line 325, in prepare_build
        install_prefix = QtInfo().prefix_dir
      File "D:\a\dev\__clones\pyside-setup\build_scripts\qtinfo.py", line 121, in prefix_dir
        return self.get_property("QT_INSTALL_PREFIX")
      File "D:\a\dev\__clones\pyside-setup\build_scripts\qtinfo.py", line 163, in get_property
        self._get_other_properties()
      File "D:\a\dev\__clones\pyside-setup\build_scripts\qtinfo.py", line 224, in _get_other_properties
        for key, value in self._get_cmake_mkspecs_variables().items():
      File "D:\a\dev\__clones\pyside-setup\build_scripts\qtinfo.py", line 265, in _get_cmake_mkspecs_variables
        raise RuntimeError(f"Could not determine cmake variables: {error}")
    RuntimeError: Could not determine cmake variables: None
    Traceback (most recent call last):
      File "setup.py", line 78, in <module>
        setup_runner.run_setup()
      File "D:\a\dev\__clones\pyside-setup\build_scripts\setup_runner.py", line 167, in run_setup
        raise RuntimeError(msg)
    RuntimeError:
    setup.py invocation failed with exit code: 1.
    
    
    setup.py invocation was: D:\a\pr\Python38\python.exe setup.py build --qmake=D:/a/pr/Qt/6.2.0/msvc2019_64/bin/qmake.exe --parallel=8 --internal-build-type=shiboken6
    
    
    D:\a\dev\__clones\pyside-setup>
    
    D:\a\dev\__clones\pyside-setup>git status
    On branch 6.2.0
    Your branch is up to date with 'origin/6.2.0'.
    
    nothing to commit, working tree clean
    
    D:\a\dev\__clones\pyside-setup>git remote -v
    origin  https://code.qt.io/pyside/pyside-setup (fetch)
    origin  https://code.qt.io/pyside/pyside-setup (push)
    
    D:\a\dev\__clones\pyside-setup>
    
    1 Reply Last reply
    1
    • B Offline
      B Offline
      berry36
      wrote 28 days ago last edited by berry36 4 Nov 2025, 02:47
      #2

      Hello, do you still need help now?

      You seem to be using Windows. Maybe setting architecture environment will solve it?

      Search for vcvarsall.bat and use it to initialize environment, before running anything:

      path/to/vcvarsall.bat x64
      

      You also need to do this when building qtbase (if you build it from source).

      Though you have not encountered it yet, make sure your installed clang's architecture matches too. Otherwise, you may encounter lots of strange linker errors like "unresolved symbol __imp_xxxxx".

      You can change x64 to some other architecture, but make sure the architecture is consistent.

      Similar answer

      1 Reply Last reply
      0

      • Login

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