-
Notifications
You must be signed in to change notification settings - Fork 133
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
KeyringLocked error when trying to publish (on a system with keyring and an unrelated KDE app instaled) #538
Comments
I think presenting a better error message in this is definitely reasonable and a worthwhile enhancement. @takluyver do you have any preferences between making the message self-contained vs linking to the existing keyring documentation? |
Thanks! I agree there are probably better ways we can present this to the user. We already handle the case where keyring finds no password by falling back to an interactive prompt, so a simple option is to do the same on this error, probably along with a message saying that keyring access was denied. It's annoying that kwallet prompts to create a keyring even when we're just looking for an existing password, but I don't think there's anything we can easily do about that. 😕 Just to mention a few possible workarounds (not least for other people getting this error and finding this issue):
I've also thought about making an interface to manage your PyPI credentials as a separate program, but I don't think it's possible on the generic |
Thank you for Flit! I finally made a package with it, and found it very easy and polished!
Except for one issue.
On my system,
keyring
(and soflit
) defaults to using the KDE Wallet. This is not intentional: I do some KDE application installed that requires kwallet libraries, but I don't seem to have any kwallet configuration UI to go along with it, and after some cursory research I don't want to trust kwallet to save my passwords.Running
flit publish
looks like this for me:(click Cancel)
Flit documentation mentions it uses keyring library, whose README lists many options on how to configure it from code (i.e. what Flit can do, but as a user I can't), before mentioning I can run
keyring --disable
or setPYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
. That works for me, but the experience isn't smooth.Perhaps Flit could handle the error more gracefully, or point to the end-user-facing keyring documentation?
It looks like this error in keyring, which best fixed in KDE (1, 2), but that's now way outside what I wanted to do with Flit. Reporting this seems like the best I can do to help with the time I have.
The text was updated successfully, but these errors were encountered: