Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
gritstub opened this issue Jan 9, 2023 · 1 comment · May be fixed by #21
Open

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

gritstub opened this issue Jan 9, 2023 · 1 comment · May be fixed by #21

Comments

@gritstub
Copy link

gritstub commented Jan 9, 2023

Using woof on Python 3.11+ now throws this warning every time:

woof:30: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  import cgi, urllib.request, urllib.parse, http.server

The Python documentation on cgi recommends:

Deprecated since version 3.11, will be removed in version 3.13: The cgi module is deprecated (see PEP 594 for details and alternatives).

The FieldStorage class can typically be replaced with urllib.parse.parse_qsl() for GET and HEAD requests, and the email.message module or multipart for POST and PUT. Most utility functions have replacements.

@CoolCat467 CoolCat467 linked a pull request Jul 23, 2023 that will close this issue
@CoolCat467
Copy link

Today, Python 3.13 released, and the depreciated cgi module has been removed, leaving this project unable to run with the newest versions of python.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants