Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6180

Getting "option parsing failed: Cannot open display:" using Raspberry Pi and cron

$
0
0

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.


Viewing all articles
Browse latest Browse all 6180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>