Unable to build PySide6.2.4 for Raspbian Bullseye - PYSIDE-2058
-
Goal:
PySide2 support on Raspberry pi 4B running Raspbian Bullseye which is a debian based OS.Motivation:
I remember trying it a few years back and was able to sucessfully install PySide2 on one of the previous Raspbian OS. However now the pip package just refuses to install on either Raspbian Bullseye or Buster. Based on preliminary search, it seems the dependencies have now been changed from the source rendering both pyside2 and 6 incompatible with raspbian.What have I tried:
I tried building Pyside6 (And Qt6) from scratch on Raspberry Pi Bullseye. While Qt6 build was a sucess, I am getting some install errors at the end of the process the details of which can be found in
bugreportWhat I wish to achieve from this forum:
Just wondering if anyone else has had sucess with this process and can assit in building a pip library for it so others can install pyside6 in their raspbian project with ease?Thanks
-
Goal:
PySide2 support on Raspberry pi 4B running Raspbian Bullseye which is a debian based OS.Motivation:
I remember trying it a few years back and was able to sucessfully install PySide2 on one of the previous Raspbian OS. However now the pip package just refuses to install on either Raspbian Bullseye or Buster. Based on preliminary search, it seems the dependencies have now been changed from the source rendering both pyside2 and 6 incompatible with raspbian.What have I tried:
I tried building Pyside6 (And Qt6) from scratch on Raspberry Pi Bullseye. While Qt6 build was a sucess, I am getting some install errors at the end of the process the details of which can be found in
bugreportWhat I wish to achieve from this forum:
Just wondering if anyone else has had sucess with this process and can assit in building a pip library for it so others can install pyside6 in their raspbian project with ease?Thanks
Hello,
Motivation:
I remember trying it a few years back and was able to sucessfully install PySide2 on one of the previous Raspbian OS. However now the pip package just refuses to install on either Raspbian Bullseye or Buster. Based on preliminary search, it seems the dependencies have now been changed from the source rendering both pyside2 and 6 incompatible with raspbian.There has never been pyside2 wheels for embedded systems published on PyPi, meaning you probable installed PySide2 either via your package manager (apt) or from a different index.
There has been effort by a former Debian maintainer to provide both Qt6 and PySide6 packages for Debian, I'm certain there will be an announcement in the following weeks about it, but then you will be able to install it on your system, and not on your virtual environments, because the
pip install
command will not work, as long as we don't publish the wheels for embedded.One of the main reasons why there were no such packages on Raspberry Pi OS (formerly known as raspbian), was the lack of Qt6. I have built myself pyside6 using some beta Qt6 packages and at least it works, but it doesn't have much value for me to share those wheels, because there are not maintained and are just a test.
What have I tried:
I tried building Pyside6 (And Qt6) from scratch on Raspberry Pi Bullseye. While Qt6 build was a sucess, I am getting some install errors at the end of the process the details of which can be found in
bugreportBetter to check the dependencies that were changed for Qt6, you need libclang 10+ and in the report you are using 9 https://doc.qt.io/qtforpython/gettingstarted.html
What I wish to achieve from this forum:
Just wondering if anyone else has had sucess with this process and can assit in building a pip library for it so others can install pyside6 in their raspbian project with ease?The Qt for Python team has been working for a while to provide more wheels to new interpreters and platforms. We managed to publish PyPy wheels https://download.qt.io/official_releases/QtForPython/pypy/ and embedded systems are the next step, but we are waiting for an official Qt 6 package to be available on Rasperry Pi OS.
If you were using Manjaro ARM or Archlinux ARM, you will notice that you have the latest Qt6 and PySide6 there as a system package, but we couldn't release the wheels we build for those OSs due to the incompatibility that will imply to have a glibc version which is too new compared to the one on the latest Debian stable.
Things are a bit complicated, as you might have noticed, but there is tons of willingness to publish wheels for Raspberry Pi OS.
If the cross compilation on the CI don't work, the plan b is to approach the folks at https://www.raspberrypi.com/news/piwheels/ and provide source packages for shiboken and pyside, so they can take care of creating the wheel.I hope I clarify some of your questions :)