You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since yesterday's release I am receiving the following error:
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/__main__.py", line 53, in <module>
sys.exit(main())
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/__main__.py", line 28, in main
result = cli.dispatch(sys.argv[1:])
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/cli.py", line 68, in dispatch
return main(args.args)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/commands/upload.py", line 197, in main
return upload(upload_settings, parsed_args.dists)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/commands/upload.py", line 126, in upload
repository = upload_settings.create_repository()
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/settings.py", line 329, in create_repository
repo = repository.Repository(
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/repository.py", line 72, in __init__
self.session.mount(scheme, self._make_adapter_with_retries())
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/repository.py", line 80, in _make_adapter_with_retries
retry = urllib3.Retry(
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
Uploading distributions to https://upload.pypi.org/legacy/
I can confirm that pinning twine's version to the previous one (twine==3.7.1) works fine
The text was updated successfully, but these errors were encountered:
Figure out which dependency is requiring an old urllib3, and see if there's a new version which supports urllib3 >= 1.26.0.
Move pip install twine to just before the twine upload step, so that everything before that uses the old urllib3, but Twine uses the new one.
Replace pip install twine and twine upload with pipx run twine upload; pipx is installed on GitHub's runners, and will install and run Twine from an isolated virtual environment.
Your Environment
I am running an automated github workflow
Your operating system:
ubuntu-latest on github actions
Version of python you are running:
3.9
How did you install twine? Did you use your operating system's package manager or pip or something else?
python3 -m pip install setuptools wheel twine
Version of twine you have installed (include complete output of):
latest: 3.8.0
Which package repository are you targeting?
https://pypi.org/project/thothlibrary/
The Issue
Since yesterday's release I am receiving the following error:
I can confirm that pinning twine's version to the previous one (twine==3.7.1) works fine
The text was updated successfully, but these errors were encountered: