I’ve been trying to get the OSPi to boot to the interval_program demo automatically. To do so, I’ve got /etc/rc.local running a bash script calling the ospi.py file in the ~/os/OSPi/ directory and storing the output for both regular output and error output in /var/log/gh.out and /var/log/gh-err.out, respectively.
ospi.py runs fine when started manually (i.e. sudo python ospi.py), but throws error codes when the systems boots. The contents of gh-err.out:
Traceback (most recent call last):
File "/home/pi/os/OSPi/ospi.py", line 11, in
import ospi_addon #This provides a stub for adding custom features to ospi.py as external modules.
File "/home/pi/os/OSPi/ospi_addon.py", line 2, in
File "/home/pi/os/OSPi/ospi.py", line 328, in
sdf = open('data/sd.json', 'r')
IOError: [Errno 2] No such file or directory: './data/sd.json'