[Solved] Want to create a hello world app with PyQt5

Hi - I’m trying to see if I can create a simple Qt app with PyQt5. (I’m on 64bit Haiku nightly on VMWare Fusion)

E.g.: Create your first Python GUI with PyQt5 — A simple Hello world app

I installed these packages from Haiku depot:

  1. pyqt5

  2. pyqt5_python38

  3. pyqt_sip

  4. pyqt_sip_python38

I get the following error:

> python3 app.py
Traceback (most recent call last):
  File "app.py", line 1, in <module>
    from PyQt5.QtWidgets import QApplication, QWidget
ModuleNotFoundError: No module named 'PyQt5'

Any help would be greatly appreciated :slight_smile: :blush:

Tried with “python3.8 app.py”?

1 Like

:blush: Thanks @Korli - that was the problem!!!