# How to use the python bindings on DietPi?

**URL:** <https://rpi-rgb-led-matrix.discourse.group/t/how-to-use-the-python-bindings-on-dietpi/565>\
**Category:** Uncategorized\
**Created:** [August 31, 2022, 7:29pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/how-to-use-the-python-bindings-on-dietpi/565 "2022-08-31T19:29:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeffrey](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@Jeffrey](https://rpi-rgb-led-matrix.discourse.group/u/Jeffrey)\
**Post date:** [August 31, 2022, 7:29pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/how-to-use-the-python-bindings-on-dietpi/565/1 "2022-08-31T19:29:43Z")

</div>

The author recommends DietPi to get the best performance out of an rpi-rgb-led-matrix setup so I have downloaded this OS and installed to a test SD card on a RPI4.

I have installed Python3 using the DietPi optimized software installation system and I have installed rpi-rgb-led-matrix both directly using the included setup.py and by using the script provided by Adafruit ([link](https://learn.adafruit.com/adafruit-rgb-matrix-plus-real-time-clock-hat-for-raspberry-pi/driving-matrices)) and yet whenever I try to run my python scripts (which work on Raspian Lite), I get the error 'ModuleNotFoundError: No module named ‘rgbmatrix’.

I cannot figure out how to get this library working on DietPi. Any help would be gratefully received.

---

<div class="post-metadata">

**Author:** ![marcmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/rpi-rgb-led-matrix.discourse.group/marcmerlin/32/40_2.png) [@marcmerlin](https://rpi-rgb-led-matrix.discourse.group/u/marcmerlin)\
**Post date:** [October 26, 2022, 5:21pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/how-to-use-the-python-bindings-on-dietpi/565/2 "2022-10-26T17:21:37Z")

</div>

I don’t use python, but this looks like you need to install the rpi-rgb-panel bindings in your pythonpath

---

<div class="post-metadata">

**Author:** ![jinglemansweep](https://yyz2.discourse-cdn.com/free1/user_avatar/rpi-rgb-led-matrix.discourse.group/jinglemansweep/32/279_2.png) [@jinglemansweep](https://rpi-rgb-led-matrix.discourse.group/u/jinglemansweep)\
**Post date:** [February 9, 2023, 6:41pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/how-to-use-the-python-bindings-on-dietpi/565/3 "2023-02-09T18:41:23Z")

</div>

> **[GitHub - jinglemansweep/pygame-rgb-matrix at v0.4.3 - Installation](https://github.com/jinglemansweep/pygame-rgb-matrix/tree/v0.4.3#installation)**
>
> v0.4.3

And modify your Python path to point it to the directory that you built the python bindings in…

> <https://github.com/jinglemansweep/pygame-rgb-matrix/blob/v0.4.3/src/app/ __main__.py#L19>
