I'm new to python and have been working on a code to take timelapse photographs, with this at the top of the code:
I tried upgrading sh.py but the requirements are already up to date.
Thanks!
from time import sleep from datetime import datetime from sh import gphoto2 as gp import signal, os, subprocessthe iterations up until this one have been working, however now when I run it I get this error:
Error:
Traceback (most recent call last):
File "earth_test_7.py", line 4, in <module>
from sh import gphoto2 as gp
File "usr/local/lib/python3.4/dist-packages/sh.py", line 1
PWD=/home/pi ; USER=root ; COMMAND=/bin/date =s @1488917643
^
IndentationError: unexpected indent
I'n confused as to how to resolve this as I haven't changed the downloaded package since installing it. A previous iteration was working earlier today, but now gives me the same error message. I tried upgrading sh.py but the requirements are already up to date.
Thanks!