# Can not run Python demo

**URL:** <https://rpi-rgb-led-matrix.discourse.group/t/can-not-run-python-demo/735>\
**Category:** Uncategorized\
**Created:** [October 13, 2023, 6:14pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/can-not-run-python-demo/735 "2023-10-13T18:14:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saralee](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@Saralee](https://rpi-rgb-led-matrix.discourse.group/u/Saralee)\
**Post date:** [October 13, 2023, 6:14pm UTC](https://rpi-rgb-led-matrix.discourse.group/t/can-not-run-python-demo/735/1 "2023-10-13T18:14:03Z")

</div>

I connect Raspberry Pi with RGB matrix using ada fruit Bonnet, and tried to run runtext.py

```auto
sudo ./bindings/python/samples/runtext.py --led-rows=16 --led-cols=32 --led-chain=4

```

I got this error

```auto
File "/home/afc/rpi-rgb-led-matrix/bindings/python/rgbmatrix/ __init__.py", line 7, in <module>
    from .core import RGBMatrix, FrameCanvas, RGBMatrixOptions
ModuleNotFoundError: No module named 'rgbmatrix.core'

```

I researched and found some post recommend to install python in the rgi matrix directory, following the instruction in README file

```auto

sudo apt-get update && sudo apt-get install python3-dev python3-pillow -y
make build-python PYTHON=$(command -v python3)
sudo make install-python PYTHON=$(command -v python3)

```

then I ran into this error

```auto
make[2]: Leaving directory '/home/afc/rpi-rgb-led-matrix/lib'
/usr/bin/python3 setup.py build --build-lib .
rgbmatrix/core.cpp:198:12: fatal error: longintrepr.h: No such file or directory
  198 | #include "longintrepr.h"
      | ^ ~~~~~~~~~~~~~~
compilation terminated.

```

I found that it’s a bug in Cython. but I have no idea how to deal with it. any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![weins3](https://avatars.discourse-cdn.com/v4/letter/w/c68b51/32.png) [@weins3](https://rpi-rgb-led-matrix.discourse.group/u/weins3)\
**Post date:** [January 31, 2025, 9:51am UTC](https://rpi-rgb-led-matrix.discourse.group/t/can-not-run-python-demo/735/2 "2025-01-31T09:51:10Z")

</div>

did you can resolve? i have the same problem
