Skip to content
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: (Ikea Tradfri) py3coap not found #139

Open
martijnenco opened this issue Aug 22, 2021 · 1 comment
Open

Error: Ikea Tradfri: (Ikea Tradfri) py3coap not found #139

martijnenco opened this issue Aug 22, 2021 · 1 comment

Comments

@martijnenco
Copy link

Hello just tried to install on raspbian. but came across this error that I can't resolve.
I saw an issue that looks the same but isn't. There the python version of domoticz differs from the console. That is not the case for me.
As you can see in the logs it is 3.7.3 and python3 -V gives back Python 3.7.3

2021-08-22 22:26:15.690 Status: PluginSystem: Started, Python version '3.7.3'.
2021-08-22 22:26:15.700 Status: WebServer(HTTP) started on address: :: with port 80
2021-08-22 22:26:15.707 Status: WebServer(SSL) started on address: :: with port 443
2021-08-22 22:26:15.744 Status: TCPServer: shared server started...
2021-08-22 22:26:15.745 Status: RxQueue: queue worker started...
2021-08-22 22:26:17.748 Ikea Tradfri hardware started.
2021-08-22 22:26:17.748 Status: Ikea Tradfri: (Ikea Tradfri) Entering work loop.
2021-08-22 22:26:17.748 Status: Ikea Tradfri: (Ikea Tradfri) Started.
2021-08-22 22:26:17.748 Status: NotificationSystem: thread started...
2021-08-22 22:26:17.748 Status: EventSystem: reset all events...
2021-08-22 22:26:17.749 Status: EventSystem: reset all device statuses...
2021-08-22 22:26:17.804 Status: Python EventSystem: Initializing event module.
2021-08-22 22:26:17.805 Status: EventSystem: Started
2021-08-22 22:26:17.805 Status: EventSystem: Queue thread started...
2021-08-22 22:26:18.124 Status: PluginSystem: 1 plugins started.
2021-08-22 22:26:18.806 Status: Ikea Tradfri: (Ikea Tradfri) Initialized version 0.10.7, author 'moroen'
2021-08-22 22:26:18.809 Error: Ikea Tradfri: (Ikea Tradfri) Failed to initialize tradfri module.
2021-08-22 22:26:18.810 Error: Ikea Tradfri: (Ikea Tradfri) py3coap not found
2021-08-22 22:26:27.077 Error: Ikea Tradfri: (Ikea Tradfri) 'onHeartbeat' failed 'NameError':'name 'close_connection' is not defined'.
2021-08-22 22:26:27.077 Error: Ikea Tradfri: (Ikea Tradfri) Exception traceback:
2021-08-22 22:26:27.077 Error: Ikea Tradfri: (Ikea Tradfri) ----> Line 813 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function onHeartbeat
2021-08-22 22:26:27.077 Error: Ikea Tradfri: (Ikea Tradfri) ----> Line 769 in '/home/pi/domoticz/plugins/IKEA-Tradfri/plugin.py', function onHeartbeat

python3 plugin.py version gives:

Tradfricoap: 0.1.0
Py3coap: 0.9.2
coapcmd: Not found (Looking for /home/pi/domoticz/plugins/IKEA-Tradfri/bin/coapcmd).
@martijnenco
Copy link
Author

martijnenco commented Aug 22, 2021

Update: Suddenly al the devices are listed. But! I still have this error logging every second.. :)
Update2: They were only there for a minute, they all have a last seen on: ...
Update3: Reinstalled pycoap for the 100th time, now it all works as expected..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant