Closed Meowscarado closed 7 months ago
pygame
is only installed for software emulation purposes through https://github.com/ty-porter/RGBMatrixEmulator. You could try removing RGBMatrixEmulator>=0.8.4
from requirements.txt
to get it to install as a bandaid.
When you tried to install MLB StatsAPI manually, did you run as root?
sudo python3 -m pip install "MLB_StatsAPI>=1.6.1"
Yes I did install as root and after deleting the RBG matrix and running I have a different problem :/
It says my soundboard is enabled despite setting the sound to off in the config file (and rebooting), and it is saying it will not load images because the PIL is outdated... except when I upgrade pillow says I am running 10.1.0.
" pi@raspberrypi:~/mlb-led-scoreboard $ python -m pip install --upgrade pillow
Defaulting to user installation because normal site-packages is not writeable
DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/rgbmatrix-0.0.1-py3.11-linux-armv7l.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
Requirement already satisfied: pillow in /home/pi/.local/lib/python3.11/site-packages (10.1.0)
pi@raspberrypi:~/mlb-led-scoreboard $ sudo python3 main.py
WARNING (17:57:54): Attempted to load an insecure PIL version (9.4.0). We require PIL 10.0.1 or higher.
WARNING (17:57:54): PIL failed to load -- images will not be displayed.
Suggestion: to slightly improve display update, add
isolcpus=3
at the end of /boot/cmdline.txt and reboot (see README.md)
=== snd_bcm2835: found that the Pi sound module is loaded. ===
Don't use the built-in sound of the Pi together with this lib; it is known to be
incompatible and cause trouble and hangs (you can still use external USB sound adapters).
See Troubleshooting section in README how to disable the sound module.
You can also run with --led-no-hardware-pulse to avoid the incompatibility,
but you will have more flicker.
Exiting; fix the above first or use --led-no-hardware-pulse"
Update, after a lot of shots in the dark regarding updates to pillow, I got it to work. Still needs tweaking since it is duplicating the screen but at least it displays something
This issue is a
Hardware Configuration
Software Configuration
Expected behavior
MLB Should install
Actual behavior
Receive error when downloading dependencies.
Used: sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old
Dependencies started downloading, however, install does not install pygame.
Error: " Collecting pygame<3,>=2.0.1 Using cached pygame-2.5.2.tar.gz (15.8 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [34 lines of output] Skipping Cython compilation
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. "
When running sudo python3 main.py, I then get "ModuleNotFoundError: No module named 'statsapi'."
However, after manually trying to install MLB statsapi, it says it is already installed.
Additional Information