Page 2 of 3

Re: Plugin won't load

PostPosted: Tue Apr 09, 2024 10:57 pm
by racarter
The Python package has been updated from 3.10 to 3.11. Replace the 3.10s with 3.11s in the path.

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 8:40 am
by mgolden50
Thanks for your response.

Crypto folder is now found at

But when I reload the plug-in I get the following errors in the log.

Reloading plugin "Tapo 2023.0.0" using API v3.0
Starting plugin "Tapo 2023.0.0" (pid 12110)
Tapo Error Error in plugin execution InitializeMain:

File "plugin.py", line 20, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Tapo.IndigoPlugin/Contents/Server Plugin/PyP100/PyP110.py", line 1, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Tapo.IndigoPlugin/Contents/Server Plugin/PyP100/PyP100.py", line 3, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Tapo.IndigoPlugin/Contents/Server Plugin/PyP100/auth_protocol.py", line 9, in <module>
type: No module named 'Crypto.Hash'

Stopping plugin "Tapo 2023.0.0" (pid 12110)
Stopped plugin "Tapo 2023.0.0"

Any guidance would be much appreciated.

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 8:55 am
by racarter
This might be a M1 issue. Try replacing the Crypto folder in Site Packages with the one in the Resources folder of my plugin.

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 9:06 am
by mgolden50
I'm not finding anything called a "Resources Folder". Where do I find that?

Also downloading and reinstalling the latest version is producing an installation error

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 9:15 am
by mgolden50
restarting Indigo cleared the plugin install issue. But the other error remains.

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 9:43 am
by racarter
I’ve PMed you.

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 10:16 am
by mgolden50
Thanks so much. The plug-in now loads and runs.

A note in your plugin instructions about how to find the Resources folder and the new path to the Crypto folder might be useful for others.

I appreciate your plugin contribution. It will be very useful for me!

Mike

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 11:38 am
by mgolden50
Hi Again,

Trying to set up a P110 plug device and I'm now getting this new error.

Tapo Starting TP-Link Tapo monitoring thread
Tapo Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 85, in runConcurrentThread
File "plugin.py", line 136, in getReadings
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Tapo.IndigoPlugin/Contents/Server Plugin/PyP100/PyP100.py", line 55, in getDeviceInfo
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Tapo.IndigoPlugin/Contents/Server Plugin/PyP100/PyP100.py", line 43, in request
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Tapo.IndigoPlugin/Contents/Server Plugin/PyP100/PyP100.py", line 39, in _initialize
type: Failed to initialize protocol

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 11:53 am
by racarter
I've never seen that error before. I assume the device you're trying to add already exists in the Tapo phone app?

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 12:29 pm
by mgolden50
Yes, the device is in the Tapo app and it turns off and on correctly from it.

Re: Plugin won't load

PostPosted: Wed Apr 10, 2024 12:48 pm
by racarter
Is there anything in the debug log?

Code: Select all
Logs/com.racarter.indigoplugin.tapo/

Re: Plugin won't load

PostPosted: Thu Apr 11, 2024 9:18 am
by mgolden50
In plugin config I've checked "copy Tapo comms to event log" but I don't see any thing new there. Just the same errors the moment I create a new Taco device in Indigo.

Re: Plugin won't load

PostPosted: Thu Apr 11, 2024 9:31 am
by racarter
Please check the debug log in the folder path I specified.

Re: Plugin won't load

PostPosted: Thu Apr 11, 2024 9:59 am
by mgolden50
And what is that path? I don't find anything ins site-packages.

Re: Plugin won't load

PostPosted: Thu Apr 11, 2024 10:04 am
by racarter
In the Indigo folder (where the Plugins folder resides) you’ll find the Logs folder. Navigate to:

Logs/com.racarter.indigoplugin.tapo/

The debug files are there.