-
Notifications
You must be signed in to change notification settings - Fork 233
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
Python 3.11 ImportError: cannot import name 'formatargspec' from 'inspect' (pylint) #239
Comments
my workaround: go to => site-packages/wrapt/decorators.py and change all "formatargspec" to "formatargvalues" |
You look to be using an old wrapt version. Are you pinning the version? You need to be using at least wrapt 1.14.0 if using Python 3.11. |
@GrahamDumpleton I updated the version information that I've used (which is 1.15.0) |
And are you suggesting that it still fails with 1.15.0, or does it now work? |
Hi Graham, I went to site-packages/wrapt/decorators.py and change all "formatargspec" to "formatargvalues" |
That isn't what I am asking. I am asking for clarification that if you ensure you are using version 1.15.0 that still had the issue. The traceback you give above is not for when using version 1.15.0. The trackback shows:
But line 34 in version 1.15.0 (latest) doesn't look like that, so you must be on an older version. See what latest code looks like at: which should show:
So it doesn't import |
I would suggest you |
Thanks, Graham, I did but it still happens and only can be solved by the workaround. However, this ticket can be closed. |
If the code doesn't look like what I linked in the GitHub repo, then something is causing you to be pinned to an older version of wrapt. If you are adamant that the code does match what is in the repo, then run:
and provide the output so can confirm what version Also run the Python command line interpreter and from it do:
and see what the I would not be surprised if you are using some third party package which has pinned to an old version of wrapt and so when you install things it is being force to the old version. |
This should avoid GrahamDumpleton/wrapt#239 on Python 3.11
This should avoid GrahamDumpleton/wrapt#239 on Python 3.11
This should avoid GrahamDumpleton/wrapt#239 on Python 3.11
This should avoid GrahamDumpleton/wrapt#239 on Python 3.11
logs below
The text was updated successfully, but these errors were encountered: