Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Not able to install PySide2 for raspberry pi
Forum Updated to NodeBB v4.3 + New Features

Not able to install PySide2 for raspberry pi

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 2.6k Views 2 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.
  • R Offline
    R Offline
    RG97
    wrote on 14 Jun 2019, 12:49 last edited by
    #1

    I have successfully cross-compiled Qt for the raspberry pi platform and able to run QML based applications on the target platform by configuring a kit in Qt Creator. I want to use PySide2 to create a hybrid application using python and QML for my target platform i.e. raspberry pi.
    Does PySide2 support raspberry pi platform? If yes, then what steps should I be following to execute this ?

    P 1 Reply Last reply 14 Jun 2019, 13:18
    0
    • R RG97
      14 Jun 2019, 12:49

      I have successfully cross-compiled Qt for the raspberry pi platform and able to run QML based applications on the target platform by configuring a kit in Qt Creator. I want to use PySide2 to create a hybrid application using python and QML for my target platform i.e. raspberry pi.
      Does PySide2 support raspberry pi platform? If yes, then what steps should I be following to execute this ?

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 14 Jun 2019, 13:18 last edited by
      #2

      @RG97 said in Not able to install PySide2 for raspberry pi:

      Does PySide2 support raspberry pi platform?

      Please see this post for an ongoing discussion about PySide2 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
      • R Offline
        R Offline
        RG97
        wrote on 14 Jun 2019, 16:21 last edited by
        #3

        Is there any other option to use python bindings in raspberry pi other than installing arch linux os ?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          asaezper
          wrote on 26 Jun 2019, 10:46 last edited by
          #4

          Right now, cross-compiling PySide2 is not possible. It seems that Qt for Python team is working on it for future releases. Also, some users manage to successfully do it (Please see Andrea Tessadri's comment on https://bugreports.qt.io/browse/PYSIDE-802).

          The easier solution is to do a native compilation. I have generated some PySide2 standalone wheels for 5.12.0-3 and rpi3 by doing a emulated native compilation on a Docker. I hope it helps you to do your own compilation or you might use my wheels at https://github.com/asaezper/qt-for-python-rpi3-docker/releases

          P 1 Reply Last reply 26 Jun 2019, 12:14
          1
          • A asaezper
            26 Jun 2019, 10:46

            Right now, cross-compiling PySide2 is not possible. It seems that Qt for Python team is working on it for future releases. Also, some users manage to successfully do it (Please see Andrea Tessadri's comment on https://bugreports.qt.io/browse/PYSIDE-802).

            The easier solution is to do a native compilation. I have generated some PySide2 standalone wheels for 5.12.0-3 and rpi3 by doing a emulated native compilation on a Docker. I hope it helps you to do your own compilation or you might use my wheels at https://github.com/asaezper/qt-for-python-rpi3-docker/releases

            P Offline
            P Offline
            Pablo J. Rogina
            wrote on 26 Jun 2019, 12:14 last edited by
            #5

            @asaezper

            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.

            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

            • Login

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