Open drumjoss opened 5 years ago
In Python 3.11 the getargspec()
function has finally been removed and the pyFirmata library now gives an error:
AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'?
could this be a solution ?
sig = inspect.signature(func) params = sig.parameters len_args = len(params)
Replace len_args = len(inspect.getargspec(func)[0]) with len_args = len(inspect.getfullargspec(func)[0]
I confirm from python 3.11 onwards, pyFirmata cannot be used as is.
Hi there! With Python 3.6 I get this warning: pyfirmata.py:185: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec() len_args = len(inspect.getargspec(func)[0])
I installed last week with pip.