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

PyPI build and upload workflow crashes at upload step #308

Closed
luisfabib opened this issue Apr 10, 2022 · 0 comments · Fixed by #313
Closed

PyPI build and upload workflow crashes at upload step #308

luisfabib opened this issue Apr 10, 2022 · 0 comments · Fixed by #313
Labels
bug Something isn't working dev

Comments

@luisfabib
Copy link
Collaborator

During the recent release of v0.14.0 the GHA workflow for building and uploading the package to the PyPI crashed. It seems that the build was successful but the workflow crashed during the login into PyPI.

The error callback:

Uploading distributions to https://upload.pypi.org/legacy/
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/runner/.local/lib/python3.8/site-packages/twine/__main__.py", line 51, in <module>
    sys.exit(main())
  File "/home/runner/.local/lib/python3.8/site-packages/twine/__main__.py", line 33, in main
    error = cli.dispatch(sys.argv[1:])
  File "/home/runner/.local/lib/python3.8/site-packages/twine/cli.py", line 124, in dispatch
    return main(args.args)
  File "/home/runner/.local/lib/python3.8/site-packages/twine/commands/upload.py", line 198, in main
    return upload(upload_settings, parsed_args.dists)
  File "/home/runner/.local/lib/python3.8/site-packages/twine/commands/upload.py", line 127, in upload
    repository = upload_settings.create_repository()
  File "/home/runner/.local/lib/python3.8/site-packages/twine/settings.py", line 329, in create_repository
    self.username,
  File "/home/runner/.local/lib/python3.8/site-packages/twine/settings.py", line 131, in username
    return cast(Optional[str], self.auth.username)
  File "/home/runner/.local/lib/python3.8/site-packages/twine/auth.py", line 34, in username
    return utils.get_userpass_value(
  File "/home/runner/.local/lib/python3.8/site-packages/twine/utils.py", line 248, in get_userpass_value
    value = prompt_strategy()
  File "/home/runner/.local/lib/python3.8/site-packages/twine/auth.py", line 85, in username_from_keyring_or_prompt
    return self.prompt("username", input)
  File "/home/runner/.local/lib/python3.8/site-packages/twine/auth.py", line 96, in prompt
    return how(f"Enter your {what}: ")
EOFError: EOF when reading a line
Enter your username: 
Error: Process completed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant