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

Packaging with Twine: prompt for password is displayed, but cannot write #376

Closed
TesterSzymoon opened this issue Jul 8, 2020 · 4 comments

Comments

@TesterSzymoon
Copy link

TesterSzymoon commented Jul 8, 2020

Thank you for providing feedback on Python packaging!

To help us help you, please fill out as much of the following as you can. If a question is not relevant, feel free to skip it.

  1. What is your operating system and version?

Windows 10

  1. What is your Python version?

3.8.3

  1. What version of pip do you have?

20.1.1

  1. If following an online tutorial or guide, please provide a link to the page or section giving you trouble:

https://packaging.python.org/tutorials/packaging-projects/

  1. Could you describe your issue in as much detail as possible?

I followed this great tutorial and wanted to upload my package to TestPyPi. I wrote my name, and then prompt for password was displayed, but I couldn't write. I just clicked enter and 403 error has occured, that's all. Here's visualistation:

Uploading distributions to https://test.pypi.org/legacy/
Enter your username: __token__
Enter your password: <CANNOT WRITE HERE>

Do someone know how to fix that?

@merwok
Copy link

merwok commented Jul 8, 2020

It’s possible that the input code receives your character, but doesn’t echo any * or other symbol, to avoid revealing the password length. Can you try entering the username, then pasting or typing the password + Enter?

@bhrutledge
Copy link
Contributor

@TesterSzymoon Are you sure you're using the token for TestPyPI? As noted at https://test.pypi.org/help/#invalid-auth:

PyPI and TestPyPI each require you to create an account, so your credentials may be different.

@bhrutledge
Copy link
Contributor

@TesterSzymoon It looks like there's an issue with pasting passwords in Windows. I wrote up the details at pypa/twine#671 (comment). Can you read that, and confirm that one of the workarounds works for you?

@layday
Copy link
Member

layday commented Mar 28, 2021

I'll close this now but feel free to comment below if the problem persists.

@layday layday closed this as completed Mar 28, 2021
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

4 participants