Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Please make a release to fix ImportError on "cgi" module on Python 3.13 #181

Copy link
Copy link
@andy-maier

Description

@andy-maier
Issue body actions

Python 3.13 removed the deprecated "cgi" module (see https://docs.python.org/3.12/library/cgi.html), but the latest released version 2.1.0 of formencode still uses the "cgi" module.

That leads to an ImportError for any users of formencode on Python 3.13:

/opt/hostedtoolcache/Python/3.13.0-rc.1/x64/lib/python3.13/site-packages/formencode/validators.py:8: in <module>
    import cgi
E   ModuleNotFoundError: No module named 'cgi'

PR #176 fixed that, but is not yet in a released version of formencode. Since Python 3.13.0 will be GA in the next couple of weeks, a new version of formencode with that fix should be released.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.