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. How can I install Pysde2 in Raspberry pi?
Forum Updated to NodeBB v4.3 + New Features

How can I install Pysde2 in Raspberry pi?

Scheduled Pinned Locked Moved Unsolved Qt for Python
26 Posts 5 Posters 9.1k Views 3 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.
  • M Offline
    M Offline
    Marianagb
    wrote on 1 Jun 2019, 21:49 last edited by
    #1

    Im not able to install Pyside2 on my raspberry

    P 1 Reply Last reply 5 Jun 2019, 20:37
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Jun 2019, 07:03 last edited by
      #2

      Hi,

      How did you try to install PySide2 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply 14 Jun 2019, 17:20
      0
      • M Marianagb
        1 Jun 2019, 21:49

        Im not able to install Pyside2 on my raspberry

        P Offline
        P Offline
        Pablo J. Rogina
        wrote on 5 Jun 2019, 20:37 last edited by
        #3

        @Marianagb said in How can I install Pysde2 in Raspberry pi?:

        Im not able to install Pyside2 on my raspberry

        Unfortunately the official Qt for Python packages using the pip wheel are not available for ARM platform.

        However, if you don't mind using Arch Linux ARM as the OS for your Raspberry Pi device, you can get the packages and tools (rcc, uic, etc.), both for armv7h and aarch64.

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        M R 2 Replies Last reply 13 Jun 2019, 13:46
        1
        • P Pablo J. Rogina
          5 Jun 2019, 20:37

          @Marianagb said in How can I install Pysde2 in Raspberry pi?:

          Im not able to install Pyside2 on my raspberry

          Unfortunately the official Qt for Python packages using the pip wheel are not available for ARM platform.

          However, if you don't mind using Arch Linux ARM as the OS for your Raspberry Pi device, you can get the packages and tools (rcc, uic, etc.), both for armv7h and aarch64.

          M Offline
          M Offline
          Marianagb
          wrote on 13 Jun 2019, 13:46 last edited by
          #4

          @Pablo-J.-Rogina Can you tell me more about Arch Linux ARM ?

          P 1 Reply Last reply 13 Jun 2019, 13:50
          0
          • M Marianagb
            13 Jun 2019, 13:46

            @Pablo-J.-Rogina Can you tell me more about Arch Linux ARM ?

            P Offline
            P Offline
            Pablo J. Rogina
            wrote on 13 Jun 2019, 13:50 last edited by
            #5

            @Marianagb it's just another possible Linux distribution you can install on Raspberry Pi devices

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • S SGaist
              2 Jun 2019, 07:03

              Hi,

              How did you try to install PySide2 ?

              R Offline
              R Offline
              RG97
              wrote on 14 Jun 2019, 17:20 last edited by
              #6

              @SGaist Is there any way to do it ?

              1 Reply Last reply
              0
              • P Pablo J. Rogina
                5 Jun 2019, 20:37

                @Marianagb said in How can I install Pysde2 in Raspberry pi?:

                Im not able to install Pyside2 on my raspberry

                Unfortunately the official Qt for Python packages using the pip wheel are not available for ARM platform.

                However, if you don't mind using Arch Linux ARM as the OS for your Raspberry Pi device, you can get the packages and tools (rcc, uic, etc.), both for armv7h and aarch64.

                R Offline
                R Offline
                RG97
                wrote on 14 Jun 2019, 17:38 last edited by
                #7

                @Pablo-J.-Rogina I didn't find any relevant information about installing PySide in Arch Linux ARM. Can you please help me out ?

                P 1 Reply Last reply 14 Jun 2019, 17:42
                0
                • R RG97
                  14 Jun 2019, 17:38

                  @Pablo-J.-Rogina I didn't find any relevant information about installing PySide in Arch Linux ARM. Can you please help me out ?

                  P Offline
                  P Offline
                  Pablo J. Rogina
                  wrote on 14 Jun 2019, 17:42 last edited by
                  #8

                  @RG97 PySide2 is just like any regular package in Arch Linux ARM

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  R 2 Replies Last reply 14 Jun 2019, 18:11
                  0
                  • P Pablo J. Rogina
                    14 Jun 2019, 17:42

                    @RG97 PySide2 is just like any regular package in Arch Linux ARM

                    R Offline
                    R Offline
                    RG97
                    wrote on 14 Jun 2019, 18:11 last edited by
                    #9

                    @Pablo-J.-Rogina Alright, thanks, I guess I will go with the Arch Linux option only as migrating to C++ for the whole project will be too big of a task. Raspbian buster, which is an ongoing project to create complete Debian os for RPI will also work with PySide2.

                    1 Reply Last reply
                    0
                    • P Pablo J. Rogina
                      14 Jun 2019, 17:42

                      @RG97 PySide2 is just like any regular package in Arch Linux ARM

                      R Offline
                      R Offline
                      RG97
                      wrote on 15 Jun 2019, 11:57 last edited by
                      #10

                      @Pablo-J.-Rogina Have you tried installing PySide2 in arch linux arm. I installed arch linux in raspberry pi and have been trying to install the pyside2 using pacman manager but had no luck yet :(

                      P 1 Reply Last reply 15 Jun 2019, 17:41
                      0
                      • R RG97
                        15 Jun 2019, 11:57

                        @Pablo-J.-Rogina Have you tried installing PySide2 in arch linux arm. I installed arch linux in raspberry pi and have been trying to install the pyside2 using pacman manager but had no luck yet :(

                        P Offline
                        P Offline
                        Pablo J. Rogina
                        wrote on 15 Jun 2019, 17:41 last edited by
                        #11

                        @RG97 said

                        Have you tried installing PySide2 in arch linux arm

                        yes I did

                        [alarm@alarmpi ~]$ uname -a
                        Linux alarmpi 4.19.32-1-ARCH #1 SMP PREEMPT Thu Apr 4 00:12:02 UTC 2019 armv7l GNU/Linux
                        
                        [alarm@alarmpi ~]$ pacman -Qlq pyside2
                        ...
                        /usr/include/PySide2/QtCore/
                        /usr/include/PySide2/QtCore/pyside2_qtcore_python.h
                        ...
                        

                        I installed arch linux in raspberry pi

                        Are you talking about Arch Linux ARM, right?

                        and have been trying to install the pyside2 using pacman manager but had no luck yet :(

                        What happened? What error(s) did you get?

                        Upvote the answer(s) that helped you solve the issue
                        Use "Topic Tools" button to mark your post as Solved
                        Add screenshots via postimage.org
                        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                        R 1 Reply Last reply 15 Jun 2019, 19:04
                        0
                        • P Pablo J. Rogina
                          15 Jun 2019, 17:41

                          @RG97 said

                          Have you tried installing PySide2 in arch linux arm

                          yes I did

                          [alarm@alarmpi ~]$ uname -a
                          Linux alarmpi 4.19.32-1-ARCH #1 SMP PREEMPT Thu Apr 4 00:12:02 UTC 2019 armv7l GNU/Linux
                          
                          [alarm@alarmpi ~]$ pacman -Qlq pyside2
                          ...
                          /usr/include/PySide2/QtCore/
                          /usr/include/PySide2/QtCore/pyside2_qtcore_python.h
                          ...
                          

                          I installed arch linux in raspberry pi

                          Are you talking about Arch Linux ARM, right?

                          and have been trying to install the pyside2 using pacman manager but had no luck yet :(

                          What happened? What error(s) did you get?

                          R Offline
                          R Offline
                          RG97
                          wrote on 15 Jun 2019, 19:04 last edited by RG97
                          #12

                          @Pablo-J.-Rogina

                          Are you talking about Arch Linux ARM, right?

                          Yes, talking about Arch Linux ARM only.
                          Okay so I was able to install it using pacman manager only

                          [root@alarmpi alarm]# uname -a
                          Linux alarmpi 4.19.46-1-ARCH #1 SMP PREEMPT Thu May 30 13:54:52 UTC 2019 armv7l GNU/Linux
                          
                          [root@alarmpi alarm]#  pacman -Qlq pyside2
                          
                          ...
                          /usr/include/PySide2/QtCore/
                          /usr/include/PySide2/QtCore/pyside2_qtcore_python.h
                          ...
                          
                          

                          But whenever I try to run the following snippet of code

                          #!/usr/bin/python
                          import sys
                          from PySide2.QtWidgets import QApplication, QPushButton
                          from PySide2.QtCore import Slot
                          
                          @Slot()
                          def say_hello():
                           print("Button clicked, Hello!")
                          
                          # Create the Qt Application
                          app = QApplication(sys.argv)
                          # Create a button, connect it and show it
                          button = QPushButton("Click me")
                          button.clicked.connect(say_hello)
                          button.show()
                          # Run the main Qt loop
                          app.exec_()
                          

                          It is showing me this error

                          [root@alarmpi alarm]# python test.py 
                          Bus error (core dumped)
                          
                          

                          Not able to get any clue regarding this.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 15 Jun 2019, 19:51 last edited by
                            #13

                            What version of of PySide2 do you have ?
                            What version of Qt ?
                            Did you try to run an equivalent C++ version of your application ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            R 1 Reply Last reply 15 Jun 2019, 20:15
                            0
                            • S SGaist
                              15 Jun 2019, 19:51

                              What version of of PySide2 do you have ?
                              What version of Qt ?
                              Did you try to run an equivalent C++ version of your application ?

                              R Offline
                              R Offline
                              RG97
                              wrote on 15 Jun 2019, 20:15 last edited by RG97
                              #14

                              @SGaist

                              What version of of PySide2 do you have ?
                              What version of Qt ?

                              I just installed PySide2 in a freshly installed Arch Linux ARM running on raspberry pi. As far as I know, PySide runs long with Qt version >=5.11 .Correct me if am wrong, I don't need to build the Qt Core separately along with installing PySide2 in order to make it work ?

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on 15 Jun 2019, 20:22 last edited by
                                #15

                                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.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                R 1 Reply Last reply 15 Jun 2019, 20:44
                                0
                                • S SGaist
                                  15 Jun 2019, 20:22

                                  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.

                                  R Offline
                                  R Offline
                                  RG97
                                  wrote on 15 Jun 2019, 20:44 last edited by RG97
                                  #16

                                  @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)
                                  
                                  
                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on 15 Jun 2019, 20:49 last edited by
                                    #17

                                    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.

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    R 1 Reply Last reply 15 Jun 2019, 20:56
                                    0
                                    • S SGaist
                                      15 Jun 2019, 20:49

                                      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.

                                      R Offline
                                      R Offline
                                      RG97
                                      wrote on 15 Jun 2019, 20:56 last edited by
                                      #18

                                      @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.

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on 15 Jun 2019, 21:38 last edited by
                                        #19

                                        Are you doing all of that directly on the Pi or are you cross-compiling ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • R Offline
                                          R Offline
                                          RG97
                                          wrote on 15 Jun 2019, 22:08 last edited by
                                          #20

                                          I am cross compiling the app in a desktop.

                                          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