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. Pyside on Boot2Qt in RaspberryPi5

Pyside on Boot2Qt in RaspberryPi5

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 283 Views 1 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.
  • P Offline
    P Offline
    Pritha Suresh
    wrote on last edited by
    #1

    Hi,

    I'm trying to run a sample app using Boot2Qt image on Raspberry Pi device. The Qt launcher is up in the monitor. Followed the steps in this documentation https://doc.qt.io/qtforpython-6/tutorials/embedded/boot2qt.html.

    Getting the following error:
    C:\Users\PSI2COB\Documents\NFC>ssh root@172.20.10.2
    Last login: Thu Oct 16 09:17:25 2025 from 172.20.10.3
    root@b2qt-raspberrypi-armv8:~# ls
    Test root
    root@b2qt-raspberrypi-armv8:~# cd Test
    root@b2qt-raspberrypi-armv8:~/Test# ls
    sample_app.py
    root@b2qt-raspberrypi-armv8:~/Test# python3 sample_app.py
    Traceback (most recent call last):
    File "/root/Test/sample_app.py", line 3, in <module>
    from PySide6.QtWidgets import QApplication, QLabel
    ImportError: libX11.so.6: cannot open shared object file: No such file or directory

    How do I resolve this?

    jsulmJ 1 Reply Last reply
    0
    • P Pritha Suresh

      Hi,

      I'm trying to run a sample app using Boot2Qt image on Raspberry Pi device. The Qt launcher is up in the monitor. Followed the steps in this documentation https://doc.qt.io/qtforpython-6/tutorials/embedded/boot2qt.html.

      Getting the following error:
      C:\Users\PSI2COB\Documents\NFC>ssh root@172.20.10.2
      Last login: Thu Oct 16 09:17:25 2025 from 172.20.10.3
      root@b2qt-raspberrypi-armv8:~# ls
      Test root
      root@b2qt-raspberrypi-armv8:~# cd Test
      root@b2qt-raspberrypi-armv8:~/Test# ls
      sample_app.py
      root@b2qt-raspberrypi-armv8:~/Test# python3 sample_app.py
      Traceback (most recent call last):
      File "/root/Test/sample_app.py", line 3, in <module>
      from PySide6.QtWidgets import QApplication, QLabel
      ImportError: libX11.so.6: cannot open shared object file: No such file or directory

      How do I resolve this?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Pritha-Suresh Since you're accessing the device via ssh you need to forward X11 if you want to run a GUI application this way, see -X ssh parameter,

      Also the error you get hints that you did not install X11 on the device.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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