Pip install schedule?This is what I added to the crontab file
Code:@reboot python /home/pi/Water/Changer.py &
Its strange if in terminal I cd into my directory Water and then run 'python Changer.py' it runs without any problems, If I'm out of the Water directory and run at 'python /home/pi/Water/Changer.py' it throws up the statement
but if I run 'sudo python /home/pi/Water/Changer.py' I getCode:Traceback (most recent call last): File "/home/pi/Water/Changer.py", line 83, in <module> paper.Initial() File "/home/pi/Water/epaper.py", line 30, in Initial frame_black = epd.get_frame_buffer(Image.open('black1.bmp')) File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2312, in open fp = builtins.open(filename, "rb") IOError: [Errno 2] No such file or directory: 'black1.bmp'
Code:Traceback (most recent call last): File "/home/pi/Water/Changer.py", line 5, in <module> import schedule ImportError: No module named schedule
I can't figure out whats wrong?