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

Global name "keyring" is not defined #50

Open
Bmarquez1997 opened this issue Jul 23, 2018 · 2 comments
Open

Global name "keyring" is not defined #50

Bmarquez1997 opened this issue Jul 23, 2018 · 2 comments

Comments

@Bmarquez1997
Copy link

When running the yagmail.register command, I get the following message:

(username and password removed for privacy)

yagmail.register("","")
Traceback (most recent call last):
File "", line 1, in
File "/home/pi/oprint/local/lib/python2.7/site-packages/yagmail/password.py", line 37, in register
keyring.set_password("yagmail", username, password)
NameError: global name 'keyring' is not defined

I followed the steps in the readme, first importing yagmail, and then running the register command

@slippmann
Copy link

I had to install keyring first

~/oprint/bin/pip install --upgrade keyring

I also required upgrades for pip and setuptools before keyring would successfully install

~/oprint/bin/pip install --upgrade pip
~/oprint/bin/pip install --upgrade setuptools

@aashutosh0012
Copy link

Need to install keyring
pip install keyring

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