Closed pjockey closed 3 years ago
run sudo python3 src/main.py --led-gpio-mapping=adafruit-hat --led-brightness=60 --led-slowdown-gpio=2
File is src/main.py
I believe the ./install.sh
and start commands should be run from within the nhl-led-scoreboard/
directory. Make sure to cd
into the directory first and let us know what comes back.
cd ~/nhl-led-scoreboard/
./install.sh
or
cd ~/nhl-led-scoreboard/
python3 ./src/main.py --led-gpio-mapping=adafruit-hat --led-brightness=60 --led-slowdown-gpio=2 --led-no-hardware-pulse=true && break
or
cd ~/nhl-led-scoreboard/
sudo python3 ./src/main.py --led-gpio-mapping=adafruit-hat --led-brightness=60 --led-slowdown-gpio=2 && break
Note: If an external program is starting the app, you usually need to specify the directory or path for it starting with /home/pi
, not ~
.
The correct adafruit flag is also --led-gpio-mapping=adafruit-hat
.
@xTrackstar04x and @sflems are right. Make sure you fallow the instructions found in this documentation and not from somewhere else as it won't work otherwise. cheers
Describe the bug Running main.py from ~/nhl-led-scoreboard/src/main.py shows errors of modules not found or installed. I've run the ~/./install.sh twice and still have this problem.
Logs python main.py --led-gpio-mapping-adafruit-hat --led-brightness=60 --led-slowdown-gpio=2 && break Traceback (most recent call last): File "main.py", line 3, in
from data.scoreboard_config import ScoreboardConfig
File "/home/pi/nhl-led-scoreboard/src/data/scoreboard_config.py", line 1, in
from utils import get_file
File "/home/pi/nhl-led-scoreboard/src/utils.py", line 1, in
from rgbmatrix import RGBMatrixOptions, graphics
ImportError: No module named rgbmatrix
Your config file
Hardware you are using
Software