Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Install PySide6 failed due to QT not found in macos.
Forum Updated to NodeBB v4.3 + New Features

Install PySide6 failed due to QT not found in macos.

Scheduled Pinned Locked Moved Solved Qt for Python
3 Posts 2 Posters 694 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.
  • K Offline
    K Offline
    kxhuang
    wrote on last edited by kxhuang
    #1

    Hello,

    When I follow the pyside6 installation guide as below page, error happens in building/installation.
    https://doc.qt.io/qtforpython/gettingstarted-macOS.html

    bash-3.2$ python3 setup.py build --qtpaths=/Users/bean/Qt/6.4.0/macos/bin/qtpaths --build-tests --ignore-git --parallel=8 --qt-target-path=/Users/bean/Qt/6.4.0/
    In directory /Users/bean/work/pyana/pyside/pyside-setup:
    	Running command:  /Library/Developer/CommandLineTools/usr/bin/python3 setup.py build --qtpaths=/Users/bean/Qt/6.4.0/macos/bin/qtpaths --build-tests --ignore-git --parallel=8 --qt-target-path=/Users/bean/Qt/6.4.0/ --internal-build-type=shiboken6
    running build
    
    Could not find Qt via provided option --qt-target-path=/Users/bean/Qt/6.4.0/ Error was:
    
    .....
    
    RuntimeError: 
    Failed to configure CMake project: '/Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_mkspec'
    Configure args were:
        /opt/homebrew/bin/cmake -G Ninja -S /Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_mkspec -B /Users/bean/work/pyana/pyside/pyside-setup/build/config.tests/target_qt_mkspec_6oq28d6l -DCMAKE_PREFIX_PATH=/Users/bean/Qt/6.4.0/macos
    Return code: 1
    
    

    Since I have install QT package and gave the directory path to qt-target-path, the error message still report could not find QT. (I have tried /Users/bean/Qt/, /Users/bean/Qt/6.4.0/macos)
    Also, the path of qtpaths are given as /Users/bean/Qt/6.4.0/macos/bin/qtpaths

    Do anyone know how can I fix the installation?

    Thanks

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kxhuang
      wrote on last edited by
      #3

      Hello,

      I found the reason why PySide6 installation failed.
      Here is another error message

      RuntimeError: 
      Failed to configure CMake project: '/Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info'
      Configure args were:
          /opt/homebrew/bin/cmake -G Ninja -S /Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info -B /Users/bean/work/pyana/pyside/pyside-setup/build/config.tests/target_qt_info_twe5ehbb -DQFP_QT_TARGET_PATH=/Users/bean/Qt/6.4.0/
      Return code: 1
      
      with error:
          CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
          CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      CMakeOutput.log:
          The system is: Darwin - 21.6.0 - arm64
      
      

      After I install "Ninja" with homebrew, the installation success.
      So, that's nothing about QT path.....

      1 Reply Last reply
      0
      • F Offline
        F Offline
        friedemannkleint
        wrote on last edited by
        #2

        Just omit the --qt-target-path= option. It is for cross-builds only. qtpaths should be sufficient, or, better, have that version of Qt in PATH.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kxhuang
          wrote on last edited by
          #3

          Hello,

          I found the reason why PySide6 installation failed.
          Here is another error message

          RuntimeError: 
          Failed to configure CMake project: '/Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info'
          Configure args were:
              /opt/homebrew/bin/cmake -G Ninja -S /Users/bean/work/pyana/pyside/pyside-setup/sources/shiboken6/config.tests/target_qt_info -B /Users/bean/work/pyana/pyside/pyside-setup/build/config.tests/target_qt_info_twe5ehbb -DQFP_QT_TARGET_PATH=/Users/bean/Qt/6.4.0/
          Return code: 1
          
          with error:
              CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
              CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
          CMakeOutput.log:
              The system is: Darwin - 21.6.0 - arm64
          
          

          After I install "Ninja" with homebrew, the installation success.
          So, that's nothing about QT path.....

          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