I have a python script that I'd like to run at boot. The script cycles through and displays pictures. When I execute the script from the terminal after booting into the Pi, it works fine.
However, when it automatically runs (I put the script in crontab), I don't see any pictures. Looking at the logs, I see the error:
option parsing failed: Cannot open display:
endlessly being printed.
ps aux | grep python
shows that my python process is still running.
Edit: This thread was useful to debug the issue. I moved the python script from crontab to autostart on the Pi. Hope this helps someone else.