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. shiboken6/pyside6 with poetry under msys2
Forum Updated to NodeBB v4.3 + New Features

shiboken6/pyside6 with poetry under msys2

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 444 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    RobinMaubert
    wrote on last edited by
    #1

    0

    I would like to use PySide6 in a poetry project under msys2

    My configuration is the following:

    poetry version 2.1.0 from package mingw64/mingw-w64-x86_64-python-poetry
    pyproject.toml settings:

    [tool.poetry.dependencies]
    python = ">=3.11,<3.13"
    pyinstaller = "*"
    yoctopuce = "*"
    pyside6 = "*"
    pyqtgraph = "*"
    
    [build-system]
    requires = ["poetry-core"]
    build-backend = "poetry.core.masonry.api"
    

    But I got the issue that shiboken6 can't be installed:

    $ poetry install
    Updating dependencies
    Resolving dependencies... (0.4s)
    
    Package operations: 14 installs, 0 updates, 0 removals
    
      - Installing shiboken6 (6.8.2): Failed
    
      RuntimeError
    
      Unable to find installation candidates for shiboken6 (6.8.2)
    
      at C:/msys64/mingw64/lib/python3.12/site-packages/poetry/installation/chooser.py:86 in choose_for
           82│
           83│             links.append(link)
           84│
           85│         if not links:
        →  86│             raise RuntimeError(f"Unable to find installation candidates for {package}")
           87│
           88│         # Get the best link
           89│         chosen = max(links, key=lambda link: self._sort_key(package, link))
           90│
    
    Cannot install shiboken6.
    

    After checking, it seems that the only packages available over poetry search are:

    - shiboken6-6.8.2.1-cp39-abi3-manylinux_2_39_aarch64.whl
    - shiboken6-6.8.2.1-cp39-abi3-manylinux_2_28_x86_64.whl
    - shiboken6-6.8.2.1-cp39-abi3-win_amd64.whl
    - shiboken6-6.8.2.1-cp39-abi3-macosx_12_0_universal2.whl
    

    Does anyone of you has an idea ? or way to install this project (I am fine reducing the pyside dependency to a fixed version).

    Thanks community

    1 Reply Last reply
    0
    • Jaime02J Offline
      Jaime02J Offline
      Jaime02
      Qt Champion 2021
      wrote on last edited by
      #2

      Hello @RobinMaubert
      Could you add which PySide6 version are you using to the post? (pip list) I have not been able to reproduce the issue 😕
      I tried both PySide6 6.8.2.1 and 6.8.1 and both of them worked fine finding shiboken ...

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RobinMaubert
        wrote on last edited by
        #3

        Hello @Jaime02 ,

        Hum I am using poetry and as it is showed in the project, there is no specified version (so it takes the latest if available). It works perfectly out of the poetry world yes for sure, but not in poetry one...

        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