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

I can not type anything in the password input for python -m twine upload --repository testpypi dist/* #384

Closed
ZenTheDev opened this issue Aug 3, 2020 · 8 comments

Comments

@ZenTheDev
Copy link

1. Operating system and version:

Windows 10

2. Python version:

3.8.5

3. Version of PIP:

20.2

5. Issue

I can't type anything in the password input you get by preforming the command 'python -m twine upload --repository testpypi dist/*'
It shows "Password: " However I can't type anything in it. The only thing I can do is press enter. I can't copy anything to it, I have tried reopening command prompt. Nothing works. It's just broken. I don't know what to do, any help is appreciated.

6. Screenshot:

screenshot

@uranusjr
Copy link
Member

uranusjr commented Aug 3, 2020

The password prompt does not show any characters (not even *) when you type in it, to avoid the output being sniffed from console history. Can you try typing the password and just hit enter and see if that works?

@ZenTheDev
Copy link
Author

The password prompt does not show any characters (not even *) when you type in it, to avoid the output being sniffed from console history. Can you try typing the password and just hit enter and see if that works?

Didn't work, copied and pasted token and it still gave me an error.

@bhrutledge
Copy link
Contributor

@ZenTheDev 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.

@ZenTheDev
Copy link
Author

Yes I am sure.

@bhrutledge
Copy link
Contributor

@ZenTheDev 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?

@ZenTheDev
Copy link
Author

None of them seem to work for me. I guess I am just not gonna be able to make a python package on my pc /:

@bhrutledge
Copy link
Contributor

@ZenTheDev One of these options should work from Command Prompt:

  1. Clicking Edit > Paste from the Command Prompt menu
  2. Enabling Properties > Options > Use Ctrl+Shift+C/V as Copy/Paste in the Command Prompt menu
  3. Use right-click to paste

Here's an example of option 1 working for me:

Kapture 2020-08-18 at 12 06 56

In the interest of enabling you to use your token (which is better than username/password) and assisting future Windows Python developers, would you be game to give one of those options a try?

@gabybarcodes
Copy link

Hi! How did you solve this problem?

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