Init error

Posted on
Fri Apr 19, 2019 1:20 pm
rhanson offline
Posts: 154
Joined: Apr 30, 2013

Init error

Noticed this after upgrading to 7.3

Code: Select all
   Starting plugin "Z-Wave Watcher 1.0.7" (pid 63217)
   Z-Wave Watcher Error            Error in plugin execution InitializeMain:

Traceback (most recent call last):
SyntaxError: ('invalid syntax', ('plugin.py', 102, 33, '\t\telseif (int(bytes[5],16)) == 2:\n'))

   Stopping plugin "Z-Wave Watcher 1.0.7" (pid 63217)

Posted on
Fri Apr 19, 2019 2:02 pm
CliveS offline
Posts: 414
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Init error

Also got the same, it seems that somehow "elif" has changed to "elseif" and as at least 3 of us have seen this I am glad it was not just me.

Easiest is to change line 102 to "elif" but also you can disable and delete the plugin, stop and start Indigo and download the file again from the Plugin store.

The question is WHY it happened ?

CliveS

Indigo 7.4.0 : MacOS High Sierra 10.13.6 : Mac mini Server (Mid 2011) : 2 GHz Core i7. : 8 GB. : 2 x 256GB Samsung EVO SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Fri Apr 19, 2019 2:43 pm
howartp offline
Posts: 3663
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Init error

Interesting.

I didn't have time during the private beta to check my plugins.

I'll check it now before/after I upgrade to 7.3, and I'll ask the other plugin devs if they had to tweak any of theirs.

Peter

Posted on
Fri Apr 19, 2019 2:51 pm
DaveL17 offline
User avatar
Posts: 5000
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Init error

Not suggesting the errors are related, but something looks fishy with the traceback. See this thread, as well:

https://forums.indigodomo.com/viewtopic.php?f=70&t=22337

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Apr 19, 2019 2:55 pm
CliveS offline
Posts: 414
Joined: Jan 10, 2016
Location: Medomsley, County Durham, UK

Re: Init error

Peter, nothing wrong with your code, it works 100% as I have downloaded from the plugin store and it works fine now.
7.2.0 worked fine
7.3.0 upgrade and it fails on line 102 as "something" changes elif to elseif!
7.3.0 with new download works fine

One thing I did not try was change line 102 and resave as I was not sure if it should have been
Code: Select all
else:
    if .....

or
Code: Select all
elif ........

CliveS

Indigo 7.4.0 : MacOS High Sierra 10.13.6 : Mac mini Server (Mid 2011) : 2 GHz Core i7. : 8 GB. : 2 x 256GB Samsung EVO SSD
----------------------------------------------------------------------------------
The best way to get the right answer on the Internet is not to ask a question, it's to post the wrong answer

Posted on
Fri Apr 19, 2019 2:58 pm
howartp offline
Posts: 3663
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Init error

I'm on 7.2 and just updated my own plugin (!) from 1.0.4 to 1.0.7

THAT is throwing the elseif() syntax error even before I upgrade to 7.3

However, the original code (my local copy, the copy on github and thus the copy you've all been running for months) has "elseif" in it, which is not valid python syntax.

All my other plugins use elif() so why I put elseif() there I don't know.

I'm updating the github copy right now, with elif() as it should be.

Peter

Posted on
Fri Apr 19, 2019 3:10 pm
howartp offline
Posts: 3663
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Init error

Ok if you go Indigo 7.3 Menu > Check for updates, then go Plugins > ZWave Watcher > Download update, you should get 1.0.8

Peter

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest