8000 ete3 cannot be used with Python 3.13 due to the deprecation of the cgi module · Issue #780 · etetoolkit/ete · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ete3 cannot be used with Python 3.13 due to the deprecation of the cgi module #780

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

Open
terrycojones opened this issue May 6, 2025 · 0 comments

Comments

@terrycojones
Copy link

The cgi module, used in ete3/webplugin/webapp.py was deprecated in Python 3.11 and removed in 3.13 (see https://docs.python.org/3.13/whatsnew/3.13.html). So trying from ete3 import Tree results in an import exception:

Traceback:
../../.local/share/uv/python/cpython-3.13.1-macos-aarch64-none/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_trees.py:2: in <module>
    from ete3 import Tree
.venv/lib/python3.13/site-packages/ete3/__init__.py:56: in <module>
    from .webplugin.webapp import *
.venv/lib/python3.13/site-packages/ete3/webplugin/webapp.py:44: in <module>
    import cgi
E   ModuleNotFoundError: No module named 'cgi'

This can be fixed by using urllib.parse.parse_qs. Pull request coming up.

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

No branches or pull requests

1 participant
0