OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) Python interval program update 8/30/13 Re: Re: Python interval program update 8/30/13

#25499

daver
Member

Hey guys,

I did the update today but after doing so, I’m seeing this error in the output log:


pi@raspberrypi ~ $ tail -f error.log
File "ospi.py", line 644
for i in range(incr):
^
IndentationError: unexpected indent

Line 644 in ospi.py (with context) looks like this:


def update_scount(self, qdict):
"""Increase or decrease the number of stations shown when expansion boards are added in options."""
if int(qdict)+1 > gv.sd: # Lengthen lists
incr = int(qdict) - (gv.sd-1)
for i in range(incr):
gv.sd.append(0)
for i in range(incr): <
Line 644
gv.sd.append(0)
snames = data('snames')
nlst = re.findall('['"].*?['"]', snames)
ln = len(nlst)
nlst.pop()

That line seems to have TABs instead of spaces on it, but trying to reset that to spaces didn’t fix this error for me.

This is a straight pull from the git repo you recently setup (thanks for doing that! Love the simpler updates now!).

We are currently away till Monday July 21. Orders placed during this time will be shipped on Tuesday July 22. Thank you for your understanding!
This is default text for notification bar