[ANSWERED]: global name is not defined behavior

Posted on
Fri Jun 13, 2014 11:23 am
stevemac00 offline
Posts: 79
Joined: Sep 02, 2013

[ANSWERED]: global name is not defined behavior

I'm writing a script which works fine when I execfile in IndigoPluginHost.
But when I run the same script from an action group "execute linked script file...", I get the global name is not defined exception.

Anybody have any idea what's going on?

Posted on
Fri Jun 13, 2014 12:02 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: global name is not defined behavior

Copy/paste the Event Log contents so we can see the exact error.

Image

Posted on
Fri Jun 13, 2014 12:05 pm
stevemac00 offline
Posts: 79
Joined: Sep 02, 2013

Re: global name is not defined behavior

Jun 13, 2014, 12:18:05 PM
Action Group HVAC-CIRC On
Virtual Devices sent "HVAC-CIRC" on
Script hvac-circ.py:testSanity
Script Error hvac-circ.py: global name 'totalOffTimeSec' is not defined
Script Error Exception Traceback (most recent call shown last):

hvac-circ.py, line 156, at top level
hvac-circ.py, line 150, in testSanity
NameError: global name 'totalOffTimeSec' is not defined

Posted on
Fri Jun 13, 2014 12:55 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: global name is not defined behavior

I think that this forum thread will explain what is occurring and how to work around it. Let me know if it doesn't.

Image

Posted on
Fri Jun 13, 2014 1:20 pm
stevemac00 offline
Posts: 79
Joined: Sep 02, 2013

Re: global name is not defined behavior

When I click the link, I get:
You are not authorised to read this forum.

Posted on
Fri Jun 13, 2014 1:27 pm
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: global name is not defined behavior

Sorry about that. Try it again.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests