-
Notifications
You must be signed in to change notification settings - Fork 310
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 upload fails on entering username because of keyring #554
Comments
Hm. I'm curious about the output of these commands:
Also, do you have a public repository for the project that you're trying to upload? |
type -a twine
twine is /usr/bin/twine twine --version
twine version 1.10.0 (pkginfo: 1.5.0.1, requests: 2.22.0, setuptools: 42.0.2,
requests-toolbelt: 0.9.1, tqdm: 4.40.1) python3 -m twine --version
twine version 1.10.0 (pkginfo: 1.5.0.1, requests: 2.22.0, setuptools: 42.0.2,
requests-toolbelt: 0.9.1, tqdm: 4.40.1)
No, I am sorry. Thanks for the help! |
I'm having this same issue, and also to a private repository. |
It looks like |
Confirmed, downgrading to |
I was still getting some exceptions with |
|
from setuptools import setup setup(name='global_benchmark_database_tool', |
Sorry for the lag in response, folks. I haven't come up to speed on keyring enough feel confident in troubleshooting, so I've been hoping that @jaraco would chime in. That said, I'm wondering if y'all are using the latest version of twine; it looks like at least @Weitspringer is using an old version. We're currently at 3.1.1, and 3.0.0 made some changes with how we use keyring: https://twine.readthedocs.io/en/latest/changelog.html. |
This issue is particularly challenging because it's reporting three different errors. Because the title of the issue mentions 'keyring', I suggest we focus on the issues related to keyring (the ModuleNotFoundErrorThe error TypeError
Did twine provide a traceback? That error message doesn't provide enough context to understand what the cause might be. |
I don't expect the backward incompatibility of the keyring 20.0 release to have any impact on twine, so that declaration is still correct. |
Sorry it took so long for me to respond, but I don't have much spare time currently. I'll try to update twine and check if this is still an issue. |
Thanks to @kgraves-ts3d, update |
I'm going to close this due to inactivity. We can reopen it if necessary. |
Environment
I installed twine with
and
The Issue
I tried to upload my
dist/*
directory with(1)
twine upload dist/*
and
(2)
python3 -m twine upload dist/*
The output of (1) was
Enter your username:
as usual. But after entering my username, twine exited with an type error:TypeError: not all arguments converted during string formatting
The output of (2) was immediately the same error, before I was asked to enter my credentials. But additionally, I came across
ModuleNotFoundError: No module named 'keyring.util.escape
. Maybe a python version thing?I tried
twine upload -u <Username> -p <Password> dist/*
, but this threw an error too:Maybe this could be of some use. Anyway: I don't really know what to do now. Can u help me?
Thanks a lot!
The text was updated successfully, but these errors were encountered: