-
Notifications
You must be signed in to change notification settings - Fork 231
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' #196
Comments
Can anyone suggest how I can replace what wrapt does when using Python 3.11. The code is:
The comment doesn't really explain it too well, but docs also have an example in: What the code is specifically looking for is where Python docs say that instead of using
How can they be used though? The and looks what I need to do is instead convert an If someone understands Also, wrapt probably needs to me modified so it can be supplied a |
I suspect the
Indeed. |
It need not be that hard since Looks like just need to reconstruct the |
Known to fail at the moment due to GrahamDumpleton/wrapt#196
Fails at the moment because of GrahamDumpleton/wrapt#196 There are some issues with compiling native versions of at least aiohttp and yarl at the moment that could be worked around, but let's revisit those when the wrapt issue is solved.
Known to fail at the moment due to GrahamDumpleton/wrapt#196
Fails at the moment because of GrahamDumpleton/wrapt#196 There are some issues with compiling native versions of at least aiohttp and yarl at the moment that could be worked around, but let's revisit those when the wrapt issue is solved.
Fails for now due to GrahamDumpleton/wrapt#196
Should be fixed in 1.14.0. |
The sync script image became broken recently when it was rebuilt and picked up python 3.11. At that point, one of the dependencies of the github package, wrapt, started failing. See here: GrahamDumpleton/wrapt#196 This pins python at 3.10 until the github package can update its (possibly transitive) dependency on wrapt to the fixed version.
pylint pulls a version of wrapt that is broken on Python 3.11. See <GrahamDumpleton/wrapt#196>. This breaks pre-commit for any devs running a modern OS. Because we already pinned flake8 to Python 3.6 to circumvent a similar problem, we now simply do it universally to prevent that whole class of problems. Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
pylint pulls a version of wrapt that is broken on Python 3.11. See <GrahamDumpleton/wrapt#196>. This breaks pre-commit for any devs running a modern OS. Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Add an entry point with basic checks for odev. Enable logging and prompting to the console with limited helper methods. [FIX] Pre-Commit PyLint hook version The PyLint hook was using an older version not compatible with Python 3.11. Ref: GrahamDumpleton/wrapt#196
cherrypy is a runtime dependency, while pylint is a build/lint dep, both of them encountered import errors due to API removals in py3.11, see the links for more. pylint's is indirect, a dependency of a dependency: pylint->astroid->wrapt but fixed by moving to a more recent version - ceph-17.2.6-mgr-dashboard-cherrypy-18.patch - ceph-17.2.6-mgr-dashboard-pylint-217.patch Issue: #12 References: cherrypy/cherrypy@8245a74 References: GrahamDumpleton/wrapt#196
See GrahamDumpleton/wrapt#196 - wrapt requires python-cryptography which requires rust
See GrahamDumpleton/wrapt#196 - wrapt requires python-cryptography which requires rust
See GrahamDumpleton/wrapt#196 - wrapt requires python-cryptography which requires rust
See GrahamDumpleton/wrapt#196 - wrapt requires python-cryptography which requires rust
See GrahamDumpleton/wrapt#196 - wrapt requires python-cryptography which requires rust
See GrahamDumpleton/wrapt#196 - wrapt requires python-cryptography which requires rust
The issue is: "ImportError: cannot import name 'formatargspec' from 'inspect'". More details: GrahamDumpleton/wrapt#196
…3.11 (#4693) <!-- Thanks for your contribution! As part of our Community Growers initiative 🌱, we're donating Justdiggit bunds in your name to reforest sub-Saharan Africa. To claim your Community Growers certificate, please contact David Berenstein in our Slack community or fill in this form https://tally.so/r/n9XrxK once your PR has been merged. --> # Description The issue is: "ImportError: cannot import name 'formatargspec' from 'inspect'" with wrapt library that happens for Python 3.11. More details: GrahamDumpleton/wrapt#196 **Type of change** (Please delete options that are not relevant. Remember to title the PR according to the type of change) - [X] Bug fix (non-breaking change which fixes an issue) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) **How Has This Been Tested** (Please describe the tests that you ran to verify your changes. And ideally, reference `tests`) - Use current tests of Argilla **Checklist** - [X] I followed the style guidelines of this project - [X] I did a self-review of my code - [X] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [X] I filled out [the contributor form](https://tally.so/r/n9XrxK) (see text above) - [X] I have added relevant notes to the `CHANGELOG.md` file (See https://keepachangelog.com/) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Francisco Aranda <francis@argilla.io>
wrapt
cannot be imported in Python 3.11:This is most likely caused by python/cpython#28618 ("Remove deprecated inspect methods").
The text was updated successfully, but these errors were encountered: