Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Media centres • Re: Peppy player

$
0
0
Have you configured the player as a service? In this case if everything is OK you should see the similar output from the systemctl status command:

Code:

pi@raspberrypi:~ $ sudo systemctl status peppy● peppy.service - Peppy     Loaded: loaded (/etc/systemd/system/peppy.service; enabled; preset: enabled)     Active: active (running) since Thu 2025-03-13 20:10:32 GMT; 1 day 5h ago   Main PID: 696 (python)      Tasks: 7 (limit: 1583)        CPU: 3.271s     CGroup: /system.slice/peppy.service             └─696 python peppy.pyMar 13 20:10:32 raspberrypi systemd[1]: Started peppy.service - Peppy.Mar 13 20:10:39 raspberrypi python[696]: error: XDG_RUNTIME_DIR is invalid or not set in the environment.Mar 13 20:10:43 raspberrypi python[696]: error: XDG_RUNTIME_DIR is invalid or not set in the environment.
If the service was configured but there was error during startup you can try to start the player manually from the directory 'home/pi/Peppy' using either the command which service is using:
openvt -s -w -- python3 peppy.py
or just:
python3 peppy.py

Code:

pi@peppy:~ $ sudo systemctl status peppy× peppy.service - Peppy     Loaded: loaded (/etc/systemd/system/peppy.service; enabled; preset: enabled)     Active: failed (Result: exit-code) since Fri 2025-03-14 19:12:36 CET; 12h ago   Duration: 621us    Process: 759 ExecStart=openvt -s -w -- python3 peppy.py (code=exited, status=200/CHDIR)   Main PID: 759 (code=exited, status=200/CHDIR)        CPU: 448usMar 14 19:12:36 peppy systemd[1]: peppy.service: Main process exited, code=exited, status=200/CHDIRMar 14 19:12:36 peppy systemd[1]: peppy.service: Failed with result 'exit-code'.Mar 14 19:12:36 peppy systemd[1]: peppy.service: Scheduled restart job, restart counter is at 5.Mar 14 19:12:36 peppy systemd[1]: Stopped peppy.service - Peppy.Mar 14 19:12:36 peppy systemd[1]: peppy.service: Start request repeated too quickly.Mar 14 19:12:36 peppy systemd[1]: peppy.service: Failed with result 'exit-code'.Mar 14 19:12:36 peppy systemd[1]: Failed to start peppy.service - Peppy.

Code:

pi@peppy:~/Peppy $ python3 peppy.pypygame 2.1.2 (SDL 2.26.5, Python 3.11.2)Hello from the pygame community. https://www.pygame.org/contribute.htmlTraceback (most recent call last):  File "/home/pi/Peppy/peppy.py", line 35, in <module>    from ui.screen.radiogroup import RadioGroupScreen  File "/home/pi/Peppy/ui/screen/radiogroup.py", line 20, in <module>    from ui.screen.menuscreen import MenuScreen     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/pi/Peppy/ui/screen/menuscreen.py", line 22, in <module>    from ui.factory import Factory  File "/home/pi/Peppy/ui/factory.py", line 30, in <module>    from util.util import IMAGE_VOLUME, V_ALIGN_CENTER, H_ALIGN_CENTER, IMAGE_TIME_KNOB, KEY_HOME, KEY_PLAYER     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "/home/pi/Peppy/util/util.py", line 44, in <module>    from util.imageutil import ImageUtil, EXT_MP4, EXT_M4A  File "/home/pi/Peppy/util/imageutil.py", line 27, in <module>    from PIL import Image, ImageFilterModuleNotFoundError: No module named 'PIL'

Statistics: Posted by aBUGSworstnightmare — Sat Mar 15, 2025 7:06 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles