Python onConnect proble with windows
Posted: Tuesday 23 January 2018 21:01
hello
i have installed domoticz V3.8833 on my windows10 and python 3.7.04a (tried with 3.6.4 and 3.5.4)
when i start some device (material) i get an
Error: (Yamaha ampli) 'onConnect' failed 'TypeError':'onConnect() missing 3 required positional arguments: 'Connection', 'Status', and 'Description''.
my pyhton script:
def onConnect(Connection, Status, Description):
global _plugin
_plugin.onConnect(Connection, Status, Description)
def onConnect(self, Connection, Status, Description):
Domoticz.Debug("onConnect called. Status: " + str(Status))
if (Status == 0):
self.isConnected = True
self.onHeartbeat()
else:
self.isConnected = False
when i use the same code with my NAS and python3.5.4 i haven't this error
could someone give me a way to solve
thanks
i have installed domoticz V3.8833 on my windows10 and python 3.7.04a (tried with 3.6.4 and 3.5.4)
when i start some device (material) i get an
Error: (Yamaha ampli) 'onConnect' failed 'TypeError':'onConnect() missing 3 required positional arguments: 'Connection', 'Status', and 'Description''.
my pyhton script:
def onConnect(Connection, Status, Description):
global _plugin
_plugin.onConnect(Connection, Status, Description)
def onConnect(self, Connection, Status, Description):
Domoticz.Debug("onConnect called. Status: " + str(Status))
if (Status == 0):
self.isConnected = True
self.onHeartbeat()
else:
self.isConnected = False
when i use the same code with my NAS and python3.5.4 i haven't this error
could someone give me a way to solve
thanks