Plugin won't load

Posted on
Tue Apr 09, 2024 10:57 pm
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin won't load

The Python package has been updated from 3.10 to 3.11. Replace the 3.10s with 3.11s in the path.

Posted on
Wed Apr 10, 2024 8:40 am
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

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.

Posted on
Wed Apr 10, 2024 8:55 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin won't load

This might be a M1 issue. Try replacing the Crypto folder in Site Packages with the one in the Resources folder of my plugin.

Posted on
Wed Apr 10, 2024 9:06 am
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

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

Posted on
Wed Apr 10, 2024 9:15 am
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

restarting Indigo cleared the plugin install issue. But the other error remains.

Posted on
Wed Apr 10, 2024 9:43 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin won't load

I’ve PMed you.

Posted on
Wed Apr 10, 2024 10:16 am
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

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

Posted on
Wed Apr 10, 2024 11:38 am
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

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

Posted on
Wed Apr 10, 2024 11:53 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin won't load

I've never seen that error before. I assume the device you're trying to add already exists in the Tapo phone app?

Posted on
Wed Apr 10, 2024 12:29 pm
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

Yes, the device is in the Tapo app and it turns off and on correctly from it.

Posted on
Wed Apr 10, 2024 12:48 pm
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin won't load

Is there anything in the debug log?

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

Posted on
Thu Apr 11, 2024 9:18 am
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

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.

Posted on
Thu Apr 11, 2024 9:31 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin won't load

Please check the debug log in the folder path I specified.

Posted on
Thu Apr 11, 2024 9:59 am
mgolden50 offline
User avatar
Posts: 261
Joined: Jan 29, 2007
Location: Chandler, AZ

Re: Plugin won't load

And what is that path? I don't find anything ins site-packages.

Posted on
Thu Apr 11, 2024 10:04 am
racarter offline
User avatar
Posts: 479
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Plugin won't load

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.

Who is online

Users browsing this forum: No registered users and 2 guests