This repository was archived by the owner on Jan 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
RecursionError: maximum recursion depth exceeded #15
Copy link
Copy link
Open
Description
Looks to be failing here
try:
self.s.send(encrypted_packet)
except:
self.connect()
self.s.send(encrypted_packet)
it f ails to send so then tries to connect and then fails and keeps going until recursion depth error
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 90, in send_packet
self.connect()
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 229, in connect
return device.connect(self)
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 66, in connect
self.update()
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 246, in update
response = self.get_status()
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 242, in get_status
response = self.send_packet(packet, True)
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 232, in send_packet
return device.send_packet(self, packet, response)
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 90, in send_packet
self.connect()
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 229, in connect
return device.connect(self)
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 66, in connect
self.update()
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 246, in update
response = self.get_status()
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 239, in get_status
packet.sequence = self.get_sequence()
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 235, in get_sequence
return device.get_sequence(self)
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 115, in get_sequence
response = self.send_packet(packet, True)
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 232, in send_packet
return device.send_packet(self, packet, response)
File "/home/hass/home-assistant/lib/python3.6/site-packages/lakeside/__init__.py", line 73, in send_packet
cipher = AES.new(bytes(key), AES.MODE_CBC, bytes(iv))
File "/home/hass/home-assistant/lib/python3.6/site-packages/Crypto/Cipher/AES.py", line 232, in new
return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
File "/home/hass/home-assistant/lib/python3.6/site-packages/Crypto/Cipher/__init__.py", line 79, in _create_cipher
return modes[mode](factory, **kwargs)
File "/home/hass/home-assistant/lib/python3.6/site-packages/Crypto/Cipher/_mode_cbc.py", line 274, in _create_cbc_cipher
cipher_state = factory._create_base_cipher(kwargs)
File "/home/hass/home-assistant/lib/python3.6/site-packages/Crypto/Cipher/AES.py", line 102, in _create_base_cipher
cipher = VoidPointer()
File "/home/hass/home-assistant/lib/python3.6/site-packages/Crypto/Util/_raw_api.py", line 159, in VoidPointer
return VoidPointer_cffi()
File "/home/hass/home-assistant/lib/python3.6/site-packages/Crypto/Util/_raw_api.py", line 150, in __init__
self._pp = ffi.new("void *[1]")
File "/home/hass/home-assistant/lib/python3.6/site-packages/cffi/api.py", line 257, in new
cdecl = self._typeof(cdecl)
RecursionError: maximum recursion depth exceeded
Metadata
Metadata
Assignees
Labels
No labels