AlexxIT / Dataplicity

Public HTTPS access to Home Assistant with Dataplicity service
https://github.com/AlexxIT/Blog
117 stars 4 forks source link

inspect.getargspec removed in Python 3.11 #21

Closed varakirill closed 1 year ago

varakirill commented 1 year ago
Logger: m2m
Source: /usr/local/lib/python3.11/site-packages/dataplicity/m2m/wsclient.py:268
First occurred: 16:49:52 (1 occurrences)
Last logged: 16:49:52
error handling websocket event

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/dataplicity/m2m/wsclient.py", line 266, in run
    self.on_event(event)
  File "/usr/local/lib/python3.11/site-packages/dataplicity/m2m/wsclient.py", line 282, in on_event
    self.on_binary(event.data)
  File "/usr/local/lib/python3.11/site-packages/dataplicity/m2m/wsclient.py", line 328, in on_binary
    self.on_packet(packet)
  File "/usr/local/lib/python3.11/site-packages/dataplicity/m2m/wsclient.py", line 348, in on_packet
    self.dispatcher.dispatch(packet_type, packet_body)
  File "/usr/local/lib/python3.11/site-packages/dataplicity/m2m/dispatcher.py", line 80, in dispatch
    return self.dispatch_packet(packet)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dataplicity/m2m/dispatcher.py", line 92, in dispatch_packet
    arg_spec = inspect.getargspec(method)
               ^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'getargspec'
Gferretta commented 1 year ago

Idem

Not working in 2023.6

🤦‍♂️😔

AlexxIT commented 1 year ago

https://github.com/AlexxIT/Dataplicity/releases/tag/v1.1.0

YVladislavovich commented 1 year ago

thanks for the great work!

Fierys commented 1 year ago

Thank you! After upgrading to v1.1.0 - everything works!