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

Py 3.13: Twine imports cgi that doesn't exist #1046

Closed
1 task done
arcivanov opened this issue Feb 9, 2024 · 1 comment · Fixed by #1047
Closed
1 task done

Py 3.13: Twine imports cgi that doesn't exist #1046

arcivanov opened this issue Feb 9, 2024 · 1 comment · Fixed by #1047

Comments

@arcivanov
Copy link

Is there an existing issue for this?

  • I have searched the existing issues (open and closed), and could not find an existing issue

What keywords did you use to search existing issues?

No response

Please describe why your using this option

  1. The template "Bug" is broken: https://github.com/pypa/twine/blob/main/.github/ISSUE_TEMPLATE/02_bug.yml

image

  1. Twine fails with Python 3.13 due to trying to import cgi
 	    error = cli.dispatch(sys.argv[1:])
	            ~~~~~~~~~~~~^^^^^^^^^^^^^^
	  File "/opt/hostedtoolcache/Python/3.13.0-alpha.3/x64/lib/python3.13/site-packages/twine/cli.py", line 121, in dispatch
	    main = registered_commands[args.command].load()
	           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
	  File "/opt/hostedtoolcache/Python/3.13.0-alpha.3/x64/lib/python3.13/site-packages/importlib_metadata/__init__.py", line 184, in load
	    module = import_module(match.group('module'))
	             ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
	  File "/opt/hostedtoolcache/Python/3.13.0-alpha.3/x64/lib/python3.13/importlib/__init__.py", line 88, in import_module
	    return _bootstrap._gcd_import(name[level:], package, level)
	           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
	  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
	  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
	  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
	  File "<frozen importlib._bootstrap_external>", line 1012, in exec_module
	  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
	  File "/opt/hostedtoolcache/Python/3.13.0-alpha.3/x64/lib/python3.13/site-packages/twine/commands/check.py", line 16, in <module>
	    import cgi

Anything else you'd like to mention?

No response

@sigmavirus24
Copy link
Member

See also #969

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

Successfully merging a pull request may close this issue.

2 participants