tino / pyFirmata

Python interface for the Firmata (http://firmata.org/) protocol. It is compliant with Firmata 2.1. Any help with updating to 2.2 is welcome. The Capability Query is implemented, but the Pin State Query feature not yet.
MIT License
575 stars 193 forks source link

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

Open williamjcroke opened 1 year ago

williamjcroke commented 1 year ago

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.

Halvhjearne commented 1 year ago

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

DansDesigns commented 1 year ago

+1 to the request

ChillarAnand commented 11 months ago

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

groaking commented 9 months ago

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.

wovano commented 6 months ago

NB: This is a duplicate of issue #84.

myselfgautham commented 4 months ago

The Same Issues Has Occured On Python3.12