pyFirmata
pyFirmata copied to clipboard
inspect.getargs - Not available in Py 3.11 - Replace with inspect.getfullargspec
Replace "inspect.getargs" on line 185 of pyfirmata.py with "inspect.getfullargspec".
Please update the repo code to this for Python 3.11 and later.
this is literally only this line that needs to change, can you pls update the repo code?
+1 to the request
@tino Is this repo actively maintained? I can send a PR for this.
Commit 1f6b116 has solved the bug. Line no. 185 now reads inspect.getfullargspec
instead of the deprecated inspect.getargs
.
However, the PIP package pyFirmata
seems no longer developed since March 2019 (source). I would recommend switching to pyFirmata2
. It works well with Python3.11 and is actively being developed. The syntax for both versions are also identical. You just need to replace import pyfirmata as pf
with import pyfirmata2 as pf
in you Python codes.
NB: This is a duplicate of issue #84.
The Same Issues Has Occured On Python3.12