Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
williamjcroke opened this issue Dec 6, 2022 · 6 comments

Comments

@williamjcroke
Copy link

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
Copy link

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

@DansDesigns
Copy link

+1 to the request

@ChillarAnand
Copy link

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

@groaking
Copy link

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
Copy link

wovano commented Feb 14, 2024

NB: This is a duplicate of issue #84.

@myselfgautham
Copy link

The Same Issues Has Occured On Python3.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants