How can I install Pysde2 in Raspberry pi?
-
No you don't have to build anything. But still the exact version will be nice to have.
And please, try to build and run a dummy Qt widget application to see if it also fails.
-
@SGaist
PySide2 version is 5.12.13.[root@alarmpi alarm]# python3 Python 3.7.3 (default, Mar 29 2019, 06:12:40) [GCC 8.2.1 20181127] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import PySide2 >>> print(PySide2.__version__) 5.12.3 >>>
I tried running simple widget example test2.py as given below
import sys from PySide2.QtWidgets import QApplication, QLabel app = QApplication(sys.argv) label = QLabel("Hello World!") label.show() app.exec_()
It gave me the same error
[root@alarmpi alarm]# python3 test2.py Bus error (core dumped)
-
That's why I asked you to test the C++ equivalent of your test application. To see whether it's a PySide2 or a mare general issue.
-
@SGaist I built one c++ equivalent of a simple widget application for a raspberry pi kit and tried to run that. It gave me the same error i.e. Bus error(core dumped).
I use the same kit in Qt Creator to build Qml based C++ apps to be run on raspberry pi running raspbian stretch and those apps run smoothly. -
Are you doing all of that directly on the Pi or are you cross-compiling ?
-
Then you have at least two versions of Qt on your target.
Where are they located ?
-
@SGaist I didn't get you exactly. I did a fresh installation of Arch Linux ARM and built PySide2 in it along with the required Qt packages. After doing all this I tried to run a simple PySide2 example and encountered the above error which I mentioned.
-
@RG97 said in How can I install Pysde2 in Raspberry pi?:
I did a fresh installation of Arch Linux ARM and built PySide2 in it along with the required Qt packages
Please be aware that I did a fresh installation of Arch Linux ARM and then I've just installed (via pacman) the Pyside2 package, which also installed in the same process the required Qt packages.
Nothing was built in the RPi device (not Qt nor PySide2...) -
Please be aware that I did a fresh installation of Arch Linux ARM and then I've just installed (via Pacman) the Pyside2 package, which also installed in the same process the required Qt packages.
Nothing was built in the RPi device (not Qt nor PySide2...)And It worked for you? I mean were you able to run PySide2 python scripts after that ?
-
I mean were you able to run PySide2 python scripts after that ?
Yes, see screenshot (using code from this example)
-
@Pablo-J.-Rogina said in Not able to install PySide2 for raspberry pi:
If you can use Arch Linux ARM as the OS for the RPi device, you may want to use already available packages for such platform. See ongoing discussion here.
That's a great option. Also, the technical preview version (5.11) can be downloaded from new Raspbian Buster repository. My problem with these solutions is that I want to install PySide2 as a regular python package, so I can handle all dependencies of my application in the same way. That's the reason I'm using custom wheels. But, of course, Arch Linux ARM job looks amazing.