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

Twine hangs without prompting for password, no uploads to PyPI happen #197

Closed
monocongo opened this issue Sep 8, 2018 · 5 comments
Closed

Comments

@monocongo
Copy link

monocongo commented Sep 8, 2018

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?

$ python --version
Python 3.7.0

  1. What version of pip do you have?

$ pip --version
pip 10.0.1 from C:\home\miniconda3\envs\packaging\lib\site-packages\pip (python 3.7)

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

I am trying to upload my tarball and wheel files using twine but it hangs after I enter my username, with no prompt for my password.

I am on a Windows 10 system, running the bash terminal that came included with the Windows git client, using Minoconda3 for my Python distribution and performing this in a conda environment that has twine installed.

$ twine --version
twine version 1.11.0 (pkginfo: 1.4.2, requests: 2.19.1, setuptools: 40.2.0,
requests-toolbelt: 0.8.0, tqdm: 4.25.0)

$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Uploading distributions to https://test.pypi.org/legacy/
Enter your username: monocongo
<THIS IS AS FAR AS IT GETS, NO PROMPT FOR PASSWORD AS EXPECTED>

I see no errors, maybe someone can advise as to where I can monitor things to detect what's causing the issue?

Thanks in advance for any suggestions!

@benoit-pierre
Copy link
Member

Does it happen if you run twine from a regular command prompt (cmd)?

As a workaround, you could provide your authentication info in ~/.pypirc (that's on Unix, not sure what the exact path would be on Windows):

[pypi]
username = user
password = pass

@monocongo
Copy link
Author

Thanks a lot for these suggestions, Benoit.

Using the regular command prompt (DOS console) worked for me.

Does this indicate a bug of some sort, in terms of the interaction of twine with the git/bash shell console for Windows?

In any event thanks again for your help, it really got me over a hump.

@benoit-pierre
Copy link
Member

benoit-pierre commented Sep 8, 2018

@monocongo: see mintty/mintty#481 (comment)

@benoit-pierre
Copy link
Member

The Git for Windows release notes point to a possible workaround: https://github.com/git-for-windows/build-extra/blob/master/ReleaseNotes.md#known-issues

@VenkatTechnologist
Copy link

The Git for Windows release notes point to a possible workaround: https://github.com/git-for-windows/build-extra/blob/master/ReleaseNotes.md#known-issues

So, is this a git 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

3 participants