-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: (IKEA-Tradfri) failed to load 'plugin.py' #116
Comments
The most common cause of this, is that the python environment that domoticz uses, can't find py3coap or coapcmd. In a docker file, you might have more success using coapcmd than py3coap. |
I tried doing that, but that gave me the following error. 2020-09-29 22:20:59.266 Error: (IKEA-Tradfri) 'onStart' failed 'FileNotFoundError'. |
The plugin can't find coapcmd. The plugin looks for coapcmd in a bin subdirectory in the IKEA-Tradfri plugin folder. |
I have a coapcmd in ~/domoticz/config/plugins/IKEA-Tradfri/bin Isn't the whole problem that the scripts look at /config/plugins and it is at /domoticz/config/plugins ?? |
Quite probably a path issue. The plugin looks for coapcmd relative to it's own location, but using absolute paths. You could try to add the following code at line 73, just before set_coapcmd(...
This will print out the absolute path for coapcmd that the plugin uses! |
I have the exact same issue: py3coap package installed within the docker image according to pip3, but the plugin won't find it. |
I run Domoticz on Docker on Ubuntu.
Have the /config folder mapped to /home/domoticz/config so the data is stored.
did the git pull from ubuntu to the correct mapped folder.
I have the IKEA-Tradfri device now under hardware.
However, I have this error in the logs:
2020-09-29 14:03:15.032 Error: (IKEA-Tradfri) failed to load 'plugin.py', Python Path used was '/config/plugins/IKEA-Tradfri/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/lib/python3.7/site-packages'.
2020-09-29 14:03:15.032 Error: (Ikea Tradfri) Module Import failed, exception: 'ApiNotFoundError'
2020-09-29 14:03:15.032 Error: (Ikea Tradfri) Error Line details not available.
And I think this is correct, because the plugin.py is not in /config/plugins/IKEA-Tradfri, but in ~/domoticz/config/plugins/IKEA-Tradfri.
How do I change this Python Path?
Side note:
running python3 plugin.py list in the /domoticz/config/plugins/IKEA-Tradfri folder does give me info about the devices (ID, name state and level).
In my case the LED driver and the remote.
The text was updated successfully, but these errors were encountered: