shiboken6/pyside6 with poetry under msys2
-
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
-
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 ... -
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...