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. Trying to do a simple UI (not a single button or text box), but my RPi says it can't find pyuic5
Forum Updated to NodeBB v4.3 + New Features

Trying to do a simple UI (not a single button or text box), but my RPi says it can't find pyuic5

Scheduled Pinned Locked Moved Solved Installation and Deployment
4 Posts 2 Posters 400 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.
  • S Offline
    S Offline
    scubabeme
    wrote on last edited by
    #1

    NOT a pip install (what is that, anyway?) on my RPi Zero with the latest image from RPi imager, but loaded tools with:
    sudo apt install qttools5-dev-tools

    The command I'm attempting to use:
    doug@PiTemp:~ $ pyuic5 -o temp_display.py ui/temp_display.ui
    result:
    bash: pyuic5: command not found

    I DO have QT 5 Designer, so I would have thought ALL the tools would have gotten installed, but alas, no. Or at least not in a location my Pi knows to look for it. I don't know where it should be in Linux's arcane filesystem. I know, I know, it's not arcane to all of you! I'm a Windows guy trying to find my way in the Linux world where there appears to be about 50 different, incompatible ways to install any given software package or change a system configuration.

    JonBJ 1 Reply Last reply
    0
    • S scubabeme

      NOT a pip install (what is that, anyway?) on my RPi Zero with the latest image from RPi imager, but loaded tools with:
      sudo apt install qttools5-dev-tools

      The command I'm attempting to use:
      doug@PiTemp:~ $ pyuic5 -o temp_display.py ui/temp_display.ui
      result:
      bash: pyuic5: command not found

      I DO have QT 5 Designer, so I would have thought ALL the tools would have gotten installed, but alas, no. Or at least not in a location my Pi knows to look for it. I don't know where it should be in Linux's arcane filesystem. I know, I know, it's not arcane to all of you! I'm a Windows guy trying to find my way in the Linux world where there appears to be about 50 different, incompatible ways to install any given software package or change a system configuration.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @scubabeme
      pyuic5 is a part of PyQt5, a third-party offering to integrate Qt with Python from Riverbank. It has nothing to do with standard Qt distribution, and would not come with apt install qttools5-dev-tools.

      You will need to start by installing PyQt5. I don't think you have done that yet. Depending on your version & distro of Linux (I don't use RPi) you may be able to do that via apt with sudo apt install python3-pyqt5. Alternatively pip, which is Python's own package installation handler, may be used via pip3 install pyqt5. Note that uses pip3 rather than plain pip: I do not know whether both of them work. I believe either of those will bring pyuic5 with it, if not pip install pyqt5-tools. If you want further information for RPi Google rpi install pyqt5.

      Be aware:

      • The current version of Qt is now Qt6. You are trying to install Qt5. You might be better off with Qt6, for which PyQt6 is available. Google rpi install pyqt6 for that.

      • PyQt comes from a third-party and has GPL instead of LGPL licensing. That puts more restrictions on you if you wish to release software you write. The Qt Company has its own offering of Python bindings for Qt, named PySide. For Qt5 that was PySide2, and I would say PyQt5 was better (if you don't mind the licensing). But certainly if you go Qt6 I would recommend the corresponding PySide6 over PyQt6. Again Google rpi install pyside6 if you want to investigate that: it may be this is still not available for RPi, I don't know.

      1 Reply Last reply
      2
      • S Offline
        S Offline
        scubabeme
        wrote on last edited by
        #3

        Ah. Did not realize I was looking at different packages. Thanks.

        Maybe I will try PySide6. I don't need to worry about licensing as this will be for my own use, at least for now, and I don't expect I'll ever go commercial.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          scubabeme
          wrote on last edited by
          #4

          PySide6 does not appear to be available on RPi. Installed PyQt6 and got my conversion done. Thanks!

          1 Reply Last reply
          0
          • S scubabeme has marked this topic as solved on

          • Login

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