anoved / OctoPrint-EmailNotifier

Receive email notifications when OctoPrint jobs are complete. Currently broken. Please fork and fix!
GNU Affero General Public License v3.0
16 stars 35 forks source link

Global name "keyring" is not defined #50

Open Bmarquez1997 opened 6 years ago

Bmarquez1997 commented 6 years ago

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 commented 5 years ago

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 commented 4 years ago

Need to install keyring pip install keyring