-
Notifications
You must be signed in to change notification settings - Fork 266
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
keyring for Rasberry Pi? #47
Comments
If you install keyrings.alt it will fix the problem, but it requires to enter a "master" key manually, so I don't know how to use keyrings.alt in a python script without revealing the "master" key. sudo pip install keyrings.alt |
keyrings. alt does not work anymore. Any other solutions ? |
@ManuGithubSteam I've started using OAuth2 recently, you can read about it in the readme :) |
Hi Sending failed. Reason:: global name 'keyring' is not defined So it want a keyring but the keyring.alt package does not exist for raspi anymore.... Any ideas ? Thanks |
Anyone figure this out?? |
Hi I figured it out. I had to change some config line in the yagmail config i believe. But i dont remeber it. It is here in Github somewhere related to this project or octoprint. |
Does the keyring feature work on a rasberry pi? I have tried it on two of them and get the same error about no backend. How do I install a backend? pip import keyring shows keyring is installed. yagmail works great if I put the password in the script, but if I try to use yagmail.register or yagmail.SMTP() without a password I get the following error:
File "yag.py", line 2, in
yagmail.SMTP('rjbos2@gmail.com')
File "/usr/local/lib/python2.7/dist-packages/yagmail/yagmail.py", line 63, in init
self.login(password)
File "/usr/local/lib/python2.7/dist-packages/yagmail/yagmail.py", line 173, in login
password = self._handle_password(password)
File "/usr/local/lib/python2.7/dist-packages/yagmail/yagmail.py", line 137, in _handle_password
password = keyring.get_password('yagmail', self.user)
File "/usr/local/lib/python2.7/dist-packages/keyring/core.py", line 42, in get_password
return _keyring_backend.get_password(service_name, username)
File "/usr/local/lib/python2.7/dist-packages/keyring/backends/fail.py", line 18, in get_password
raise RuntimeError("No recommended backend was available. Install the "
RuntimeError: No recommended backend was available. Install the keyrings.alt package if you want to use the non-recommended backends. See README.rst for details.
The text was updated successfully, but these errors were encountered: