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 10.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.
  • 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
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 16 Jun 2019, 19:33 last edited by
                  #21

                  Then you have at least two versions of Qt on your target.

                  Where are they located ?

                  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 19 Jun 2019, 07:46
                  0
                  • S SGaist
                    16 Jun 2019, 19:33

                    Then you have at least two versions of Qt on your target.

                    Where are they located ?

                    R Offline
                    R Offline
                    RG97
                    wrote on 19 Jun 2019, 07:46 last edited by
                    #22

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

                    P 1 Reply Last reply 19 Jun 2019, 13:42
                    0
                    • R RG97
                      19 Jun 2019, 07:46

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

                      P Offline
                      P Offline
                      Pablo J. Rogina
                      wrote on 19 Jun 2019, 13:42 last edited by
                      #23

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

                      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 20 Jun 2019, 05:40
                      0
                      • P Pablo J. Rogina
                        19 Jun 2019, 13:42

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

                        R Offline
                        R Offline
                        RG97
                        wrote on 20 Jun 2019, 05:40 last edited by RG97
                        #24

                        @Pablo-J.-Rogina

                        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 ?

                        P 1 Reply Last reply 24 Jun 2019, 18:16
                        0
                        • R RG97
                          20 Jun 2019, 05:40

                          @Pablo-J.-Rogina

                          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 ?

                          P Offline
                          P Offline
                          Pablo J. Rogina
                          wrote on 24 Jun 2019, 18:16 last edited by Pablo J. Rogina
                          #25

                          @RG97

                          I mean were you able to run PySide2 python scripts after that ?

                          Yes, see screenshot (using code from this example)

                          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
                          • A Offline
                            A Offline
                            asaezper
                            wrote on 26 Jun 2019, 13:02 last edited by
                            #26

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

                            1 Reply Last reply
                            0

                            23/26

                            19 Jun 2019, 13:42

                            • Login

                            • Login or register to search.
                            23 out of 26
                            • First post
                              23/26
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved