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

Jupyter notebook w/ keyring not working #118

Open
itsjimbo opened this issue Nov 8, 2021 · 3 comments
Open

Jupyter notebook w/ keyring not working #118

itsjimbo opened this issue Nov 8, 2021 · 3 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@itsjimbo
Copy link

itsjimbo commented Nov 8, 2021

Steps to reproduce

Fire up jupyter notebook with R kernel

library(keyring)
kb <- keyring::backend_file$new()
kb$set("svc","blah")
Error: key is not a string (length 1 character)

Traceback:
1. kb$set("svc", "blah")
2. b_file_set(self, private, service, username, keyring)
3. self$keyring_unlock(keyring)
4. b_file_keyring_unlock(self, private, keyring, password)
5. private$set_keyring_pass(password, keyring)
6. b__file_set_keyring_pass(self, private, key, keyring)
7. assert_that(is_string(key))
@gaborcsardi
Copy link
Member

This is probably the same as #116 and will have to be fixed in askpass: r-lib/askpass#3

Until then you can obtain the password in a different way and use kb$set_with_value().

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Nov 28, 2021
@itsjimbo
Copy link
Author

Is it possible to switch the "passwording prompt function" from askPass to getPass? I have not looked at the internals, but is that something I can write a pull request for?

@gaborcsardi
Copy link
Member

I prefer not to do that. However if you want to use getPass, you can do it like this: #116 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants