m0ranwad / nba-led-scoreboard

NBA LED scoreboard! This project displays matches and scores for all of the current day's NBA action
GNU General Public License v3.0
5 stars 3 forks source link

install.sh fails on rgb-matrix installation #5

Open mattmar10okgov opened 9 months ago

mattmar10okgov commented 9 months ago

With a fresh install of raspian, install.sh fails

To Reproduce follow the install steps in the README

Error Running rgbmatrix installation... Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease Hit:3 http://deb.debian.org/debian bookworm-updates InRelease Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package python2.7-dev E: Couldn't find any package by glob 'python2.7-dev' E: Couldn't find any package by regex 'python2.7-dev' E: Unable to locate package python-pillow make -C ./lib make[1]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[1]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make -C examples-api-use make[1]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/examples-api-use' make -C ../lib make[2]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[2]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[1]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/examples-api-use' make -C bindings/python build make[1]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/bindings/python' make -C ../../lib make[2]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[2]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' python setup.py build --build-lib . rgbmatrix/core.cpp:162:12: fatal error: longintrepr.h: No such file or directory 162 | #include "longintrepr.h" | ^~~~~~~ compilation terminated. error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1 make[1]: [Makefile:67: build-python] Error 1 make[1]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/bindings/python' make: [Makefile:28: build-python] Error 2 make -C ./lib make[1]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[1]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make -C examples-api-use make[1]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/examples-api-use' make -C ../lib make[2]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[2]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[1]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/examples-api-use' make -C bindings/python build make[1]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/bindings/python' make -C ../../lib make[2]: Entering directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' make[2]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/lib' python setup.py build --build-lib . rgbmatrix/core.cpp:162:12: fatal error: longintrepr.h: No such file or directory 162 | #include "longintrepr.h" | ^~~~~~~ compilation terminated. error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1 make[1]: [Makefile:67: build-python] Error 1 make[1]: Leaving directory '/home/mattmar10/nba-led-scoreboard/matrix/bindings/python' make: [Makefile:28: build-python] Error 2 error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. Installing required dependencies. This may take some time (10-20 minutes-ish)... HEAD is now at 67b3dc8 Fixed Utah's logo name error: pathspec 'master' did not match any file(s) known to git Already up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'libxslt1-dev' instead of 'libxslt-dev' libxml2-dev is already the newest version (2.9.14+dfsg-1.3~deb12u1). libxslt1-dev is already the newest version (1.1.35-1). 0 upgraded, 0 newly installed, 0 to remove and 120 not upgraded. error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. make: *** No targets specified and no makefile found. Stop. If you didn't see any errors above, everything should be installed! Installation complete! Play around with the examples in matrix/bindings/python/samples to make sure your matrix is working.

m0ranwad commented 9 months ago

Just to double-check, did you image your Pi with Raspberry PI OS (Legacy) Lite?

The error you encountered is similar to something I've seen before when installing these LED Matrix repositories against a Raspberry Pi with a Desktop environment. I'd only recommend running against a Legacy Lite version.