Open ceilingduster opened 1 year ago
Running cython
to generate binding files may help (python3 -m cython -a -3 --cplus *.pyx
)
I have the same problem when trying to build
make build-python PYTHON=$(command -v python3)
in the bindings/python folder
Running
cython
to generate binding files may help (python3 -m cython -a -3 --cplus *.pyx
)
I tried this but nothing changed from it.
Running
cython
to generate binding files may help (python3 -m cython -a -3 --cplus *.pyx
)I tried this but nothing changed from it.
Have you found how to fix the issue yet?
Running
cython
to generate binding files may help (python3 -m cython -a -3 --cplus *.pyx
)I tried this but nothing changed from it.
Have you found how to fix the issue yet?
Unfortunately not. I tried using an environment with Python3.9 (as that seemed to work for others previously) and downgrading cython in this environment. However I then ran into problems that pillow was not installed and got myself really confused about what I was doing. I tried installing pillow in the environment but couldn't get it to work.
What I would try next is to start over fresh and use a legacy version raspberry pi OS, from a time when this was working for others. I assume this comes with Python and all the packages in a compatible way, I would avoid running any updates. Not sure when I'm going to try this though.
Running
cython
to generate binding files may help (python3 -m cython -a -3 --cplus *.pyx
)I tried this but nothing changed from it.
Have you found how to fix the issue yet?
Unfortunately not. I tried using an environment with Python3.9 (as that seemed to work for others previously) and downgrading cython in this environment. However I then ran into problems that pillow was not installed and got myself really confused about what I was doing. I tried installing pillow in the environment but couldn't get it to work.
What I would try next is to start over fresh and use a legacy version raspberry pi OS, from a time when this was working for others. I assume this comes with Python and all the packages in a compatible way, I would avoid running any updates. Not sure when I'm going to try this though.
Will give using an older python venv a go, I've had the pillow issue before, fix I found was using an older version of that too, 9.5.0 version worked for me
Are you using https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/main/rgb-matrix.sh to install this library on a RPi? If so, note that the commit referenced in that script (as of https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/a282edbda5de1e9afcbb2bc4cfc5d37710a579e0/rgb-matrix.sh#L10) is really old! It seems to align with your error message of
rgbmatrix/core.cpp:198:12: fatal error: longintrepr.h: No such file or directory
198 | #include "longintrepr.h"]
since in newer versions of this library, that include is behind a check for PYTHON_MAJOR_VERSION < 3
.
I submitted a PR to the Adafruit repo to bump the commit, but just changing it locally should do the trick for now: https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/pull/269
I checked this now and @ziyadedher was correct, as this fixed the issue. Just make sure to manually delete everything before you run the rgb-matrix.sh again (even tough it says it overwrites, for me it didn't).
This issue can be closed, thanks a lot @ziyadedher!
Running into the following error. It seems to be related to using a newer version of Python (3.11.2 vs 3.9).
Any ideas how to resolve this? I require to use Python 3.11.2.