no venvAre you running that python in a "virtual environment" or not?
(I assume the Pi5 is running Bookworm 64-bit)
There does not seem to be any error handling (try:) when opening the .jpg or .mp4, so maybe a file not found error is happening.
Also presumably we have pip installed the vlc library into the venv?Code:
pip install python-vlc
yes, Pi5 Bookworm 64-bit
when I run the program through a terminal window, it executes perfectly. When I try to run it from autostart, it does not show the .jpg or .mp4, but the LED comes on for the correct amount of time. After the LED turns off, I can start the process over again (also without any image/video) and it will repeat the steps above. when I use the "stopper" button, I cannot start this process over again, effectively killing it, just like it is supposed to.
I'm pretty new to python, so I'm not sure exactly how/why I would need a venv, nor do I know how that would work on autostart.
I can try something else, but I just dont know what you are suggesting I do. Thanks for any advice.
Statistics: Posted by alfordtp — Tue Jan 28, 2025 3:08 am