Now Broken

Posted on
Thu Apr 04, 2024 10:36 am
jltnol offline
Posts: 994
Joined: Oct 15, 2013

Now Broken

So this bit of code used to work ...

Code: Select all
import time
time1 = time.strftime("%a"", ""%B"" ""%d"", ""%Y")
indigo.variable.updateValue(992969415, value=time1) #updates the date
import time
time2 = time.strftime("%-I"":""%M"":""%S"" ""%p")
indigo.variable.updateValue(1627691060, value=time2) #updates the open start time


but now throws an error:
Code: Select all
Script Error                    embedded script error:
   Script Error                    'list' object has no attribute 'updateValue'
   Script Error                    Exception Traceback (most recent call shown last):

     embedded script, line 3, at top level
AttributeError: 'list' object has no attribute 'updateValue'


Am on the latest version of Indigo: 2023.2.0, and MacOS 14.4.1

Not sure how long this has been a problem but the last time these time variables were updated was 3/31/24... which might have been close to when I did the last OS update..
ALSO just noticing that I have a bunch of scripts that update variables, but now they too seem to give error messages, but actually run to completion.

Posted on
Thu Apr 04, 2024 11:21 am
matt (support) offline
Site Admin
User avatar
Posts: 21421
Joined: Jan 27, 2003
Location: Texas

Re: Now Broken

I think somehow (probably via an error in one of your scripts) indigo.variable has been redefined to be a python list. That is, that instance/namespace has been overwritten and is now broken. All embedded scripts share the same "context" so if one script were to re-assign it then it would break is all embedded script executions. The good news is the solution is just to stop and restart the Indigo Server. That will likely get it working again, unless you execute the script that has the error that overrode it, then it will break again...

Image

Posted on
Thu Apr 04, 2024 6:55 pm
jltnol offline
Posts: 994
Joined: Oct 15, 2013

Re: Now Broken

Restarting seems to do the trick!

THANKS

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest