How to determine plugin Python 2 dependencies

Posted on
Thu Jul 13, 2023 2:05 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: How to determine plugin Python 2 dependencies

It was the first plugin that supported Shelly.
When the other plugin appeared I renamed it as Shelly direkt to indicate that is does not go through middle ware


Sent from my iPhone using Tapatalk

Posted on
Thu Jul 13, 2023 2:21 pm
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: How to determine plugin Python 2 dependencies

But the plugin store has the old name? No "direct"?

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jul 13, 2023 2:22 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: How to determine plugin Python 2 dependencies

I just renamed the plugin


Sent from my iPhone using Tapatalk

Posted on
Thu Jul 13, 2023 3:48 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: How to determine plugin Python 2 dependencies

kw123 wrote:
It was the first plugin that supported Shelly.
When the other plugin appeared I renamed it as Shelly direkt to indicate that is does not go through middle ware

Version 7.20.55 works now and shows the green dot. For some reason the plugin management list didn't indicate there was an update. Thanks!

--Dave

Posted on
Thu Jul 13, 2023 4:23 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: How to determine plugin Python 2 dependencies

autolog wrote:
The nanoleaf plugin has already been converted to Python 3 and is available as a pre-release on Github: Convert to Python 3 for Indigo 2022.1+

Thanks, but I tried the pre-release version but it won't start up. Gives an error in the log: Error in plugin execution InitializeMain
Went back to released version and it works again.

--Dave

Posted on
Fri Jul 14, 2023 3:04 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: How to determine plugin Python 2 dependencies

Hi Dave,
DVDDave wrote:
autolog wrote:
The nanoleaf plugin has already been converted to Python 3 and is available as a pre-release on Github: Convert to Python 3 for Indigo 2022.1+

Thanks, but I tried the pre-release version but it won't start up. Gives an error in the log: Error in plugin execution InitializeMain
Went back to released version and it works again.

Did you report that in the Nanoleaf sub-forum ?

I had a look but couldn't see a report of the error, but I could have missed it?

Could you try the Python 3 version again and post the contents of the the Indigo Event Log when it fails, so that I can try to resolve it for you. :)

Posted on
Fri Jul 14, 2023 8:33 am
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: How to determine plugin Python 2 dependencies

autolog wrote:
Hi Dave,
DVDDave wrote:
autolog wrote:
The nanoleaf plugin has already been converted to Python 3 and is available as a pre-release on Github: Convert to Python 3 for Indigo 2022.1+

Thanks, but I tried the pre-release version but it won't start up. Gives an error in the log: Error in plugin execution InitializeMain
Went back to released version and it works again.

Did you report that in the Nanoleaf sub-forum ?

I had a look but couldn't see a report of the error, but I could have missed it?

Could you try the Python 3 version again and post the contents of the the Indigo Event Log when it fails, so that I can try to resolve it for you. :)

I didn't post it there since there's been no mention of this new pre-release version and I didn't want to confuse people. Of course, this thread is confusing as well and I'll move further discussion soon to the relevant threads now that the initial discussion of Python 2 incompatibilities has run its course.

Here is the Event Log from when I upgraded the version. It includes an expansion of the initialization error which I didn't notice before. Hope it helps. BTW, I would rather not try again unless it's necessary since it took many tries to get the plugin to recognize my device again. Thanks!

Code: Select all
2023-07-13 14:32:45.607   Application   Stopping plugin Nanoleaf (pid 880)
2023-07-13 14:32:45.716   Nanoleaf   Autolog 'Nanoleaf V1 Controller' Plugin shutdown requested
2023-07-13 14:32:45.846   Nanoleaf   Stopping 'Nanoleaf'
2023-07-13 14:32:45.853   Nanoleaf   Autolog 'Nanoleaf V1 Controller' Plugin shutdown complete
2023-07-13 14:32:46.838   Application   Stopped plugin Nanoleaf
2023-07-13 14:32:46.838   Application   Upgrading plugin Nanoleaf to newer version 2022.0.2 (previous version moved to trash)
2023-07-13 14:32:47.287   Application   Loading plugin "Nanoleaf 2022.0.2" using API v3.0
2023-07-13 14:32:47.292   Application   Starting plugin "Nanoleaf 2022.0.2" (pid 74355)
2023-07-13 14:32:47.486   Nanoleaf Error   Error in plugin execution InitializeMain:

  File "plugin.py", line 20, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/Plugins/nanoleaf.indigoPlugin/Contents/Server Plugin/nanoleafapi/nanoleaf.py", line 12, in <module>
type: No module named 'sseclient'

2023-07-13 14:32:47.486   Application   Stopping plugin "Nanoleaf 2022.0.2" (pid 74355)
2023-07-13 14:32:48.436   Application   Stopped plugin "Nanoleaf 2022.0.2"

Posted on
Tue Aug 08, 2023 1:29 pm
DVDDave offline
Posts: 470
Joined: Feb 26, 2006
Location: San Jose, CA

Re: How to determine plugin Python 2 dependencies

autolog wrote:
The nanoleaf plugin has already been converted to Python 3 and is available as a pre-release on Github: Convert to Python 3 for Indigo 2022.1+

This version of the plugin now works after I ran the command
Code: Select all
pip3 install sseclient

Who is online

Users browsing this forum: No registered users and 10 guests

cron