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

Keyring has to be installed for yagmail.register() #236

Open
daroodar opened this issue May 12, 2022 · 0 comments
Open

Keyring has to be installed for yagmail.register() #236

daroodar opened this issue May 12, 2022 · 0 comments

Comments

@daroodar
Copy link

As per the title, keyring has to be installed separately for yagmail.register() to work.

~/ python3 -m pip install yagmail
Successfully installed yagmail-0.15.277

~/ python3
>>> import yagmail
>>> yagmail.register('foo', 'bar')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/homebrew/lib/python3.9/site-packages/yagmail/password.py", line 37, in register
    keyring.set_password("yagmail", username, password)
NameError: name 'keyring' is not defined

The error goes away when you install keyring.

~/ python3 -m pip install keyring
Successfully installed keyring-23.5.0

~/ python3
>>> import yagmail
>>> yagmail.register('foo', 'bar')
>>>

keyring can be installed as a dependency when installing yagmail.

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

1 participant