Page 1 of 2

New version error

PostPosted: Thu Oct 05, 2023 1:43 pm
by Different Computers
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?

Re: New version error

PostPosted: Thu Oct 05, 2023 2:09 pm
by autolog
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.

Re: New version error

PostPosted: Fri Oct 06, 2023 10:27 am
by Different Computers
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)

Re: New version error

PostPosted: Fri Oct 06, 2023 11:33 am
by autolog
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. :)

Re: New version error

PostPosted: Fri Oct 06, 2023 12:30 pm
by Different Computers
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.

Re: New version error

PostPosted: Fri Oct 06, 2023 1:28 pm
by autolog
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.

Re: New version error

PostPosted: Fri Oct 06, 2023 2:00 pm
by jay (support)
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.

Re: New version error

PostPosted: Fri Oct 06, 2023 8:30 pm
by Different Computers
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.

Re: New version error

PostPosted: Sun Oct 08, 2023 9:04 am
by Different Computers
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.

Re: New version error

PostPosted: Tue Nov 07, 2023 10:09 am
by joeaug
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.

Re: New version error

PostPosted: Tue Nov 07, 2023 10:35 am
by jay (support)
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).

Re: New version error

PostPosted: Tue Nov 07, 2023 11:12 am
by joeaug
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"

Re: New version error

PostPosted: Tue Nov 07, 2023 11:59 am
by joeaug
UPDATE: I have tried installing the pre-release version as the developed suggested another user do, but this still gives the same problem.

Re: New version error

PostPosted: Tue Nov 07, 2023 12:58 pm
by autolog
Try:
Code: Select all
pip3 install sseclient

Re: New version error

PostPosted: Tue Nov 07, 2023 1:35 pm
by joeaug
Thanks Jon, I had just come to the same conclusion ;-)

Thanks again!