Python 3.11 : AttributeError: module 'inspect' has no attribute 'formatargspec'.
Closed this issue ยท 5 comments
Need help to fix this problem
File "/home/stefets/src/.venv/mididings/lib/python3.11/site-packages/mididings-2015+r5ec70c1-py3.11-linux-x86_64.egg/mididings/arguments.py", line 73, in call
'%s%s' % (f.name, inspect.formatargspec(*signature)),
^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'inspect' has no attribute 'formatargspec'. Did you mean: 'formatargvalues'?
Please avoid duplicates. Consider merging either #41 or this with the other and delete it.
Please avoid duplicates. Consider merging either #41 or this with the other and delete it.
This is not a duplicate;
There are 2 issues with Python 3.11;
Look closely, the description of problem #41 is different from the description of problem #42.
There is a problem with formatargspec and another with getargspec
Did you search those errors? They both refer to the same aspect, as explained in the change log of python 3.11:
- Removed from the
inspect
module:
The
getargspec()
function, deprecated since Python 3.0; useinspect.signature()
orinspect.getfullargspec()
instead.The
formatargspec()
function, deprecated since Python 3.5; use theinspect.signature()
function or theinspect.Signature
object directly.
Please stop with your thumbs down, I don't need your aggressive approach and your IT morality. Problems should be reported here for other users. I searched the solutions and saw the recommendations, I will try to fix the problem but I like to hear the opinion of other programmers who use mididings. But not moralizing opinions like yours.
I'll work on that in my fork