New version error

Posted on
Thu Oct 05, 2023 1:43 pm
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

New version error

I wanted to test this in 2022.2 before making the jump.

Code: Select all
)
   Loading plugin "Nanoleaf 2022.0.2" using API v3.0
   Starting plugin "Nanoleaf 2022.0.2" (pid 47773)
   Nanoleaf Error                  Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'nanoleafapi.discover_nanoleaf'

   Stopping plugin "Nanoleaf 2022.0.2" (pid 47773)
   Stopped plugin "Nanoleaf 2022.0.2"


Is it incompatible with 2022.2?

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Oct 05, 2023 2:09 pm
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: New version error

Different Computers wrote:
I wanted to test this in 2022.2 before making the jump.

Code: Select all
)
   Loading plugin "Nanoleaf 2022.0.2" using API v3.0
   Starting plugin "Nanoleaf 2022.0.2" (pid 47773)
   Nanoleaf Error                  Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'nanoleafapi.discover_nanoleaf'

   Stopping plugin "Nanoleaf 2022.0.2" (pid 47773)
   Stopped plugin "Nanoleaf 2022.0.2"


Is it incompatible with 2022.2?

I have just downloaded and re-installed it from the Indigo Plugin Store and it is starting up OK on Indigo 2023.1 (it also worked on Indigo 2022.2).

Maybe the download got corrupted as the nanoleafapi.discover_nanoleaf is there in the plugin in my system.

As a first step, can I suggest that you download it again and try and install it. If it still goes wrong we will have to dig deeper.

Posted on
Fri Oct 06, 2023 10:27 am
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: New version error

Redownloaded. Exact same error:
Code: Select all
 Stopped plugin Nanoleaf
   Upgrading plugin Nanoleaf to newer version 2022.0.2 (previous version moved to trash)
   Loading plugin "Nanoleaf 2022.0.2" using API v3.0
   Starting plugin "Nanoleaf 2022.0.2" (pid 59971)
   Nanoleaf Error                  Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'nanoleafapi.discover_nanoleaf'

   Stopping plugin "Nanoleaf 2022.0.2" (pid 59971)

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri Oct 06, 2023 11:33 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: New version error

I don't understand that :?

I have created a new pre-release version and uploaded it to Github: Nanoleaf Control Version 2022.0.3

I have downloaded it and successfully installed it on my Indigo system.

Please try that and let me know what happens. :)

Posted on
Fri Oct 06, 2023 12:30 pm
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: New version error

No joy.

Code: Select all
Oct 6, 2023 at 2:28:37 PM
   Stopping plugin Nanoleaf (pid 60001)
   Nanoleaf                        Autolog 'Nanoleaf V1 Controller' Plugin shutdown requested
   Nanoleaf                        Stopping 'Canvas'
   Nanoleaf                        Stopping 'Indicator'
   Nanoleaf                        Stopping 'Wall Art'
   Nanoleaf                        Autolog 'Nanoleaf V1 Controller' Plugin shutdown complete
   Stopped plugin Nanoleaf
   Upgrading plugin Nanoleaf to newer version 2022.0.3 (previous version moved to trash)
   Loading plugin "Nanoleaf 2022.0.3" using API v3.0
   Starting plugin "Nanoleaf 2022.0.3" (pid 61865)
   Nanoleaf Error                  Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'nanoleafapi.discover_nanoleaf'

   Stopping plugin "Nanoleaf 2022.0.3" (pid 61865)


is it possible that changes I may have made to my python environment outside of Indigo may have affected this? I messed around with the Nanoleaf python library months ago.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Fri Oct 06, 2023 1:28 pm
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: New version error

Different Computers wrote:
No joy.

Code: Select all
Oct 6, 2023 at 2:28:37 PM
   Stopping plugin Nanoleaf (pid 60001)
   Nanoleaf                        Autolog 'Nanoleaf V1 Controller' Plugin shutdown requested
   Nanoleaf                        Stopping 'Canvas'
   Nanoleaf                        Stopping 'Indicator'
   Nanoleaf                        Stopping 'Wall Art'
   Nanoleaf                        Autolog 'Nanoleaf V1 Controller' Plugin shutdown complete
   Stopped plugin Nanoleaf
   Upgrading plugin Nanoleaf to newer version 2022.0.3 (previous version moved to trash)
   Loading plugin "Nanoleaf 2022.0.3" using API v3.0
   Starting plugin "Nanoleaf 2022.0.3" (pid 61865)
   Nanoleaf Error                  Error in plugin execution InitializeMain:

  File "plugin.py", line 21, in <module>
type: No module named 'nanoleafapi.discover_nanoleaf'

   Stopping plugin "Nanoleaf 2022.0.3" (pid 61865)

OK, I have had a few other code-related things suggested to me by @Jay.
I will incorporate those into a new version that I will get to you tomorrow at some point (UK time).

Different Computers wrote:
is it possible that changes I may have made to my python environment outside of Indigo may have affected this? I messed around with the Nanoleaf python library months ago.

I guess that is possible given that it works on my system and doesn't work on yours.
It is something we could pursue if the next version doesn't work for you.

Posted on
Fri Oct 06, 2023 2:00 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: New version error

Different Computers wrote:
is it possible that changes I may have made to my python environment outside of Indigo may have affected this? I messed around with the Nanoleaf python library months ago.


If you installed the nanoleafapi module using a pip which is pointing to the Indigo installed python, then that might be the problem.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Fri Oct 06, 2023 8:30 pm
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: New version error

jay (support) wrote:
Different Computers wrote:
is it possible that changes I may have made to my python environment outside of Indigo may have affected this? I messed around with the Nanoleaf python library months ago.


If you installed the nanoleafapi module using a pip which is pointing to the Indigo installed python, then that might be the problem.


THat’s pretty likely. I’ll figure out how to uninstall.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Sun Oct 08, 2023 9:04 am
Different Computers offline
User avatar
Posts: 2556
Joined: Jan 02, 2016
Location: East Coast

Re: New version error

Code: Select all
pip uninstall nanoleafapi
fixed the problem.

Code: Select all
Starting plugin "Nanoleaf 2022.0.3" (pid 89513)
   Nanoleaf                        Logging to Indigo Event Log at the 'Info' level
   Nanoleaf                        Logging to Plugin Event Log at the 'Info' level
   Nanoleaf                        Host IP Address overridden and specified as: '192.168.0.150'
   Started plugin "Nanoleaf 2022.0.3"
   Nanoleaf                        Initialising to poll at 300 second intervals
   Nanoleaf                        Autolog 'Nanoleaf Controller' initialization complete
   Nanoleaf                        Discovering nanoleaf aurora, canvas and shape devices on network - this should take ~30.0 seconds . . .
   Nanoleaf                        Starting  'Canvas' . . .
   Nanoleaf                        . . . Started 'Canvas'
   Nanoleaf                        Starting  'Indicator' . . .
   Nanoleaf                        . . . Started 'Indicator'
   Nanoleaf                        Starting  'Wall Art' . . .
   Nanoleaf                        . . . Started 'Wall Art'
running without error!

Thanks very much. This means I am now ready for Indigo 2022.3, as the only two plugins left on old python are Plex and EPS Device Extensions, neither of which I use much and neither of which are likely to be updated.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Tue Nov 07, 2023 10:09 am
joeaug offline
Posts: 28
Joined: Apr 13, 2019

Re: New version error

Im having the exact same problem. I'm not sure I understand where the previous poster typed in that "uninstall" command or what it did. I'm only now learning about python and have a long road ahead of me, so pardon my ignorance.

Posted on
Tue Nov 07, 2023 10:35 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: New version error

joeaug wrote:
Im having the exact same problem. I'm not sure I understand where the previous poster typed in that "uninstall" command or what it did. I'm only now learning about python and have a long road ahead of me, so pardon my ignorance.


Open a terminal window and paste this command in:

Code: Select all
pip3.10 uninstall nanoleafapi


If it was installed outside the plugin, that will remove it. If not, the command will just fail (which is fine, no harm done).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Nov 07, 2023 11:12 am
joeaug offline
Posts: 28
Joined: Apr 13, 2019

Re: New version error

Thanks for the clarification. I executed the command and the api was not there, so no harm (or anything) done. The problem persists though so any additional thoughts?

Nov 7, 2023 at 12:07:41 PM
Enabling plugin "Nanoleaf 2022.0.2" using API v3.0
Starting plugin "Nanoleaf 2022.0.2" (pid 3903)
Nanoleaf Error Error in plugin execution InitializeMain:

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

Stopping plugin "Nanoleaf 2022.0.2" (pid 3903)
Stopped plugin "Nanoleaf 2022.0.2"

Posted on
Tue Nov 07, 2023 11:59 am
joeaug offline
Posts: 28
Joined: Apr 13, 2019

Re: New version error

UPDATE: I have tried installing the pre-release version as the developed suggested another user do, but this still gives the same problem.

Posted on
Tue Nov 07, 2023 12:58 pm
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: New version error

Try:
Code: Select all
pip3 install sseclient

Posted on
Tue Nov 07, 2023 1:35 pm
joeaug offline
Posts: 28
Joined: Apr 13, 2019

Re: New version error

Thanks Jon, I had just come to the same conclusion ;-)

Thanks again!

Who is online

Users browsing this forum: No registered users and 5 guests

cron