Update for Python 3 and Indigo 2022.2?

Posted on
Sun May 15, 2022 8:24 am
MontyPySpock offline
Posts: 6
Joined: Dec 12, 2021

Update for Python 3 and Indigo 2022.2?

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!

Posted on
Sun May 15, 2022 9:31 am
Doctor Q offline
Posts: 67
Joined: Feb 18, 2020

Re: Update for Python 3 and Indigo 2022.2?

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.

Posted on
Sun May 15, 2022 11:29 am
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Update for Python 3 and Indigo 2022.2?

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:

_______
Norm

Posted on
Sun May 15, 2022 12:33 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Update for Python 3 and Indigo 2022.2?

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...

Posted on
Sun May 15, 2022 12:49 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Update for Python 3 and Indigo 2022.2?

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 :-)

_______
Norm

Posted on
Mon May 16, 2022 4:32 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Update for Python 3 and Indigo 2022.2?

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)

Image

Posted on
Mon May 16, 2022 5:28 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Update for Python 3 and Indigo 2022.2?

That is great news - some plug-in I can live without some not so much…

_______
Norm

Posted on
Mon May 16, 2022 9:33 pm
Doctor Q offline
Posts: 67
Joined: Feb 18, 2020

Re: Update for Python 3 and Indigo 2022.2?

Hurray for the Cynics!

Posted on
Wed Jun 01, 2022 9:42 am
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Update for Python 3 and Indigo 2022.2?

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. :)

Posted on
Wed Jun 01, 2022 3:09 pm
norcoscia offline
User avatar
Posts: 1206
Joined: Sep 09, 2015

Re: Update for Python 3 and Indigo 2022.2?

Thank you so much - cannot live without your plug ins!

_______
Norm

Posted on
Wed Jun 01, 2022 3:25 pm
ELWOOD offline
Posts: 225
Joined: Feb 11, 2007
Location: Ramsey, NJ

Re: Update for Python 3 and Indigo 2022.2?

Thanks Perry

Elwood

Posted on
Wed Jun 01, 2022 3:33 pm
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Update for Python 3 and Indigo 2022.2?

Thank You Perry! Updating....

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

Posted on
Mon Jun 06, 2022 5:48 am
changeagent offline
User avatar
Posts: 23
Joined: Aug 26, 2015

Re: Update for Python 3 and Indigo 2022.2?

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 2413 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.

Posted on
Mon Jun 06, 2022 4:32 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Update for Python 3 and Indigo 2022.2?

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

Posted on
Tue Jun 07, 2022 3:31 pm
changeagent offline
User avatar
Posts: 23
Joined: Aug 26, 2015

Re: Update for Python 3 and Indigo 2022.2?

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.
Attachments
nopassword.jpeg
Can't save any changes.
nopassword.jpeg (26.97 KiB) Viewed 2349 times

Who is online

Users browsing this forum: No registered users and 3 guests