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
QtWS25 Last Chance

Not able to install PySide2 for raspberry pi

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 2.6k Views
  • 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.
  • RG97R Offline
    RG97R Offline
    RG97
    wrote on 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 ?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • RG97R RG97

      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 ?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on 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
      • RG97R Offline
        RG97R Offline
        RG97
        wrote on 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
        • asaezperA Offline
          asaezperA Offline
          asaezper
          wrote on 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

          Pablo J. RoginaP 1 Reply Last reply
          1
          • asaezperA asaezper

            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

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on 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