-
Notifications
You must be signed in to change notification settings - Fork 187
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
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 #437
Comments
webob has bigger problems with cgi than just the parse_header method but that being said I don’t see a big problem with the suggested fix. I would require a little due diligence to ensure that they are actually compatible apis. Bitter rant: due diligence because the pep isn’t very trustworthy in its analyses from the perspective of the maintainer of a very popular library that’s apparently using a library so unpopular that it’s getting dropped from the stdlib. |
Any update for this issue? Reported in red hat bugzilla: |
The title could now be changed to "ImportError: no such module cgi" :'D |
Anyway, the And with all due respect to Martijn for proposing those replacements; those replacement strategies are already in use in |
In case there's interest, I've tested installing the legacy-cgi package with Python 3.13.0a3 and all tests pass. Branch is here: https://github.com/spiqueras/webob/tree/py3.13 |
Python 3.13.0b1 is out, and the |
any update on this? |
I opened a PR to swap out |
For the record, |
🤦🏼
…On Tue, 8 Oct 2024 at 03:20, Michał Górny ***@***.***> wrote:
For the record, multipart is not usable at the moment because two package
authors claim the same package name, neither wants to give up, and packages
randomly require one or the other: defnull/multipart#53
<defnull/multipart#53>
Kludex/python-multipart#152
<Kludex/python-multipart#152>.
—
Reply to this email directly, view it on GitHub
<#437 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB4O4D2DRROHBOGI3PTCZ3Z2M6ODAVCNFSM5XIPBEMKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMZZHA2TEOJUHAYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
FWIW there's also https://github.com/jackrosenthal/legacy-cgi which seems to be copy/paste of the CGI module. Conditionally depending on it might be the easier route to unblock 3.13 for the Pyramid ecosystem until the multipart situation is somehow resolved? |
Some aspects that might help here:
Probably not the nicest solution, but it would be possible to depend on |
I'm just afraid that testing all possible combinations would make the testsuite complex. |
The |
Also see:
https://peps.python.org/pep-0594/#cgi
And yes I know - it will take a couple of years until anybody will use 3.14 :-)
Anyhow, seeing the same deprecation warnings with every test run is slightly annoying. If you are ok with the suggested replacement (see pep), I'd create a PR.
The text was updated successfully, but these errors were encountered: