Page 1 of 2

Update for Python 3 and Indigo 2022.2?

PostPosted: Sun May 15, 2022 8:24 am
by MontyPySpock
Hi Perry, thanks so my for the Cynical Plugins!

I wondered if you intended to update them for use with Python 3 and Indigo 2022.2. I know this is your hobby and it may not be quick, but just wanted to check to see if it's something that you have on the radar at some point.

Thanks!

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Sun May 15, 2022 9:31 am
by Doctor Q
MontyPySpock wrote:
Hi Perry, thanks so my for the Cynical Plugins!

I wondered if you intended to update them for use with Python 3 and Indigo 2022.2. I know this is your hobby and it may not be quick, but just wanted to check to see if it's something that you have on the radar at some point.

Thanks!
Seconded. Can’t run my system without the Security Spy plugin.

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Sun May 15, 2022 11:29 am
by norcoscia
I’m in the same boat with many plug-ins - I’m really considering just freezing my system - turning off my indigo subscription and waiting to see if enough of the plug-ins I use get updated.

It is like the perfect storm - first apple keeps stirring the pot with constant changes and OS updates which causes me work and or money for new HW. Now I have a system that can’t be updated because of all the interdependencies with plug-ins and my hardware and software configuration.

Right now the cheapest and easiest route is to freeze everything - save lots of work on my part (and money) since everything that I have now works.

I love Indigo and I think Matt and Jay do a great job supporting Indigo (and deliver a very well tested product) - I think the plug-in developers have done amazing things and I use many of them. But at the end of the day if the pain and cost becomes too great, it is time for me to just freeze it and let it run until I’m dead. - maybe find a new hobby too if I live long enough :lol:

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Sun May 15, 2022 12:33 pm
by RogueProeliator
Right now the cheapest and easiest route is to freeze everything - save lots of work on my part (and money) since everything that I have now works.

The unfortunate part is this is not always practical -- with many of the services/utilities/integrations requiring SOME form of internet/cloud connectivity, at times you must get updates just to keep things working. I know we, for the most part, try to avoid cloud dependencies, but the reality is many devices and integrations still have them. Some are just the authentication, some are for partial features, and some just flat out won't work. And those cloud APIs and services change and require plugin updates.

I do sometimes skip an update on my production system because I don't have the time or inclination to fight any update issues (usually with plugins or devices, like you say); but sometimes it is just a matter of not being the first, wait a few weeks or months, and upgrading when any issues have been settled out.

Hopefully the plugins you rely on will be updated soon and it will be a non-issue...

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Sun May 15, 2022 12:49 pm
by norcoscia
Thanks, I hope so or my indigo system will be just like me - as time goes on — less and less works like (as good as) it used to :-)

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Mon May 16, 2022 4:32 pm
by matt (support)
I don't want to speak for Perry, as I'm sure he'll post a reply the next time he is logged on to the forum, but we have heard that he is working on updating at least some (the popular ones I assume) of his plugins to run under Python 3. I don't have any details I can share, but I'm confident we'll here from him at some point. 8)

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Mon May 16, 2022 5:28 pm
by norcoscia
That is great news - some plug-in I can live without some not so much…

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Mon May 16, 2022 9:33 pm
by Doctor Q
Hurray for the Cynics!

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Wed Jun 01, 2022 9:42 am
by Perry The Cynic
All my plugins have been updated to Python 3, with the exception of Cynical Calendars which I'm hereby officially retiring. (The underlying Apple API is basically gone at this point.)

Let me know if you see anything break. There should be no functional changes at all in versions 3.0.0 of these plugins. I live on those plugins, but not all functionality is in active use in the Cynical Household. :)

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Wed Jun 01, 2022 3:09 pm
by norcoscia
Thank you so much - cannot live without your plug ins!

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Wed Jun 01, 2022 3:25 pm
by ELWOOD
Thanks Perry

Elwood

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Wed Jun 01, 2022 3:33 pm
by eme jota ce
Thank You Perry! Updating....

These are some great plugins and really improve my experience with Indigo.

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Mon Jun 06, 2022 5:48 am
by changeagent
You had asked for feedback. I've been running Indigo 2022.1.1 with no issue. I updated the Cynical SecuritySpy plugin to version 3.0

I received the following errors:

2022-06-06_00-55-28.jpeg
Cameras and server stay in 'Preparing' State.
2022-06-06_00-55-28.jpeg (59.68 KiB) Viewed 2585 times
Cynical SecuritySpy Error in validateIOMConfigUi:
File ".../Server Plugin/cyin/plug.py", line 392, in validateIOMConfigUi
return self._ui._check_ui(values)
File ".../Server Plugin/cyin/configui.py", line 140, in _check_ui
self._check_fields()
File ".../Server Plugin/cyin/configui.py", line 187, in _check_fields
self._ui_values['address'] = getattr(self.iomtype, 'display_address').__func__(self)
AttributeError: 'function' object has no attribute '__func__'

Cynical SecuritySpy Error in run_concurrent_thread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 64, in run_concurrent_thread
self.run()
File ".../Server Plugin/asyn/inject.py", line 60, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 105, in run
item._can_read()
File ".../Server Plugin/asyn/selectable.py", line 242, in _can_read
self._null_read()
File ".../Server Plugin/asyn/selectable.py", line 99, in _null_read
self.callout(END)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/http.py", line 281, in incoming
self.callout('body', self.body_reply)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/spy/core.py", line 149, in reply
self.callout_error(asyn.http.StatusError(req.n_status, req.v_status))
File ".../Server Plugin/asyn/core.py", line 178, in callout_error
self.callout(Error(error, **kwargs))
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
File "plugin.py", line 97, in _event
if ctx.error[0] == '404':
TypeError: 'StatusError' object is not subscriptable

Cynical SecuritySpy Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


My web cameras shown in the Devices window display the State as 'preparing.' Nothing changes.

When trying to access the Edit Device Settings for the Server under Edit Device...I can't 'save' any changes without the message, 'Error validating files. Hover over...' appearing. The Username and Password (and all other settings) are correct.

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Mon Jun 06, 2022 4:32 pm
by Perry The Cynic
Congratulations! You have indeed found a lingering Python 3 conversion bug. Basically, when SecuritySpy returns an error to Indigo, the plugin messes up reading it because exceptions work differently in Python 3. Version 3.0.1 posted with a fix.

The not-so-good news (for you) is that your SecuritySpy is returning an error to your Indigo, and that error probably won't go away with the new version. It should tell you what that error is though, and then you can go after that.

Cheers
-- perry

Re: Update for Python 3 and Indigo 2022.2?

PostPosted: Tue Jun 07, 2022 3:31 pm
by changeagent
I tried the Version 3.0.1 fix. Same results.

I know my Username, Password, and other settings are correct.

I'll take a look at SecuritySpy and see if I can find any issues there.