pyFirmata icon indicating copy to clipboard operation
pyFirmata copied to clipboard

inspect.getargs - Not available in Py 3.11 - Replace with inspect.getfullargspec

Open williamjcroke opened this issue 2 years ago • 6 comments

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.

williamjcroke avatar Dec 06 '22 20:12 williamjcroke

this is literally only this line that needs to change, can you pls update the repo code?

Halvhjearne avatar Mar 03 '23 05:03 Halvhjearne

+1 to the request

DansDesigns avatar Aug 16 '23 22:08 DansDesigns

@tino Is this repo actively maintained? I can send a PR for this.

ChillarAnand avatar Oct 04 '23 05:10 ChillarAnand

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.

groaking avatar Nov 26 '23 04:11 groaking

NB: This is a duplicate of issue #84.

wovano avatar Feb 14 '24 10:02 wovano

The Same Issues Has Occured On Python3.12

myselfgautham avatar Apr 14 '24 14:04 myselfgautham