Building on Raspberry Pi — LightGUI Python
LightGUI Python runs on Raspberry Pi. The port is pure Python + PyGObject — no compiled extensions, no x86-only code — so it runs unchanged on 64-bit ARM. This page covers installing it on 64-bit Raspberry Pi OS (Bookworm, Debian 12), what is verified, and the one thing that is not: Wayland.
What you need
- Raspberry Pi 4 (2 GB or more) or Raspberry Pi 5
- 64-bit Raspberry Pi OS Bookworm (Debian 12) — the 32-bit (armhf) image is untested
- A display, or a remote desktop / VNC session
Install
Install the prerequisites:
sudo apt update
sudo apt install python3 python3-pip python3-gi python3-cairo python3-gi-cairo gir1.2-gtk-3.0 gitpython3-gi+gir1.2-gtk-3.0— GTK 3 via PyGObject (the IDE chrome).python3-cairo+python3-gi-cairo— Cairo drawing for the XFrame widgets. Withoutpython3-gi-cairothe canvasdrawsignal fails with "Couldn't find foreign struct converter for 'cairo.Context'".python3-pip— only needed if you install extra Python packages; LightGUI itself needs no pip packages.
Then clone the repo and run the designer:
git clone https://github.com/cnmcdee/lightgui_python.git
cd lightgui_python
./ideThere is no build step, no compiled extensions, and no package install needed to run from a checkout. Generated scripts need lightgui on PYTHONPATH unless installed system-wide (Tools → Install Libraries in the IDE).
Verified on ARM64
Verified in an aarch64 Debian Bookworm chroot (the Raspberry Pi OS equivalent): import lightgui works under aarch64 Python with PyGObject, a generated XFrame app draws live data, and the test suite passes 380 of 381. The one exception is the screenshot step of the generated-script test, which fails under qemu emulation only: the screenshot comes out blank (311 bytes) because the first draw takes 60–90 s under emulation, past the point the test captures it — the generated app itself launches and runs fine. The 3 debugger session tests are timing-sensitive under emulation and pass on re-run. The audit found no architecture assumptions in the Python sources: no ctypes, no struct packing, no platform checks, no native extensions.
Wayland — UNVERIFIED
Raspberry Pi OS Bookworm defaults to Wayland (Wayfire/labwc) on Pi 4 and Pi 5. LightGUI's XFrame widgets are X11-based, so under Wayland the toolkit runs through XWayland — this has not been tested on a real Pi and is marked UNVERIFIED. If the designer misbehaves under Wayland, switch the desktop back to X11:
sudo raspi-configthen 6 Advanced Options → Wayland → W1 X11, Finish, and reboot. (The switch also turns VNC off — re-enable it in raspi-config under Interface Options if you use VNC.)
Links
- Python repo: github.com/cnmcdee/lightgui_python
- C port: github.com/cnmcdee/lightgui
- Rust port: github.com/cnmcdee/lightgui_rust