flopp999 / Tibber-Domoticz

Script to communicate with Tibber. Help me with a buy-me-a-coffee
https://www.buymeacoffee.com/flopp999
GNU General Public License v3.0
8 stars 4 forks source link

Plugin system enters restart loop when using python 3.9 #25

Closed paalkr closed 2 years ago

paalkr commented 3 years ago

If I enable the Tibber plugin, the Domoticz plugin system just enters a restart loop restarting Tibber an all other plugins continuously.

This is my system version

Version: 2020.2 (build 12660)
Build Hash: c9135d56c
Compile Date: 2020-11-15 10:35:04
dzVents Version: 3.0.16
Python Version: 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:23:07) [MSC v.1927 32 bit (Intel)]

Snippet from the Domoticz log

...
2021-04-04 14:01:20.232 Status: Domoticz V2020.2 (build 12660) (c)2012-2020 GizMoCuz
2021-04-04 14:01:20.234 Status: Build Hash: c9135d56c, Date: 2020-11-15 10:35:04
2021-04-04 14:01:20.234 Status: Startup Path: C:\Domoticz\
2021-04-04 14:01:20.361 Status: PluginSystem: Started, Python version '3.9.0'.
2021-04-04 14:01:20.369 Status: WebServer(HTTP) started on address: :: with port 8080
2021-04-04 14:01:20.381 Status: WebServer(SSL) started on address: :: with port 8443
2021-04-04 14:01:20.383 Status: Proxymanager started.
2021-04-04 14:01:20.384 Status: Camera: settings (re)loaded
2021-04-04 14:01:20.385 Status: TCPServer: shared server started...
2021-04-04 14:01:20.385 Status: RxQueue: queue worker started...
2021-04-04 14:01:20.529 Status: PROXY: Authenticate result: Invalid apikey/password combination..
2021-04-04 14:01:25.482 Status: Domoticz V2020.2 (build 12660) (c)2012-2020 GizMoCuz
2021-04-04 14:01:25.482 Status: Build Hash: c9135d56c, Date: 2020-11-15 10:35:04
2021-04-04 14:01:25.482 Status: Startup Path: C:\Domoticz\
2021-04-04 14:01:25.601 Status: PluginSystem: Started, Python version '3.9.0'.
2021-04-04 14:01:25.609 Status: WebServer(HTTP) started on address: :: with port 8080
2021-04-04 14:01:25.620 Status: WebServer(SSL) started on address: :: with port 8443
...
paalkr commented 3 years ago

I have verified that my home ID and developer token is correct using the Tibber Explorer API

image

flopp999 commented 3 years ago

Hi, thanks for reporting. Did you use Tibber plugin with python 3.7 and then upgrade to 3.9?

paalkr commented 3 years ago

Unfortunately no. I have only tested with python 3.9

flopp999 commented 3 years ago

Hi, I found this.

https://www.domoticz.com/forum/viewtopic.php?t=35137

It seems that DZ and python 3.9 is not working together.

paalkr commented 3 years ago

Hmm, yes it does look a little similar The issue is closed now https://github.com/domoticz/domoticz/issues/4487 So I might try to update Domoticz, or downgrade to python 3.7

flopp999 commented 3 years ago

I have now updated Domoticz and the plug-in works. Can you confirm?