Skip to content
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

The cgi module is deprecated in Python 3.11.0b1 #11099

Closed
1 task done
fungi opened this issue May 8, 2022 · 2 comments · Fixed by #11098
Closed
1 task done

The cgi module is deprecated in Python 3.11.0b1 #11099

fungi opened this issue May 8, 2022 · 2 comments · Fixed by #11098
Labels
type: bug A confirmed bug or unintended behavior

Comments

@fungi
Copy link
Contributor

fungi commented May 8, 2022

Description

PEP 594 (Removing dead batteries from the standard library) deprecates cgi (among other modules) starting in Python 3.11. The DeprecationWarning was added on import as of Python 3.11.0b1 today.

Expected behavior

Pip should be able to install packages without raising deprecation warnings.

pip version

22.0.4

Python version

3.11.0b1

OS

Debian GNU/Linux

How to Reproduce

export PYTHONWARNINGS=error and then pip install anything from the network

Output

DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13

Code of Conduct

@fungi fungi added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels May 8, 2022
@pradyunsg
Copy link
Member

@fungi Thanks for filing this issue. As a general note, I'd suggest avoiding mentioning issues in commit messages, since that results in an entry on this issue every time you amend/rebase that commit.

@fungi
Copy link
Contributor Author

fungi commented May 9, 2022

@fungi Thanks for filing this issue. As a general note, I'd suggest avoiding mentioning issues in commit messages, since that results in an entry on this issue every time you amend/rebase that commit.

Thanks for the idea! I'll try to remember to remove it if it needs to be amended again.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 24, 2022
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants