I use yagmail to send mails from a gmail account. My script worked well last time i checked (i admit it was a few months ago, possibly end of last year). I tried it now and it's not working anymore, with a few issues linked to the gmail account. I allowed for 'less secure apps' to access on gmail side (i'm pretty it used to be on, but looks like i had to put it again). But then the error log told me i had to 'log in from a browser'. I resolved to update yagmail in my virtualenv, which in turn led me to install keyrings, in order to properly manage my login details. Keyrings did not suffice ('no recommended backend available' error), i had to install keyrings.alt.
The error i now get is :
/usr/lib/python3.8/getpass.py:91: GetPassWarning: Can not control echo on the terminal.
passwd = fallback_getpass(prompt, stream)
Warning: Password input may be echoed.
Password for <mymail@gmail.com>: Error running WSGI application
EOFError
I can't find what i'm supposed to do.
I found this page on stackoverflow. One of the answers says : "Use an actual terminal -- that is, an environment where stdin, stdout and stderr are connected to /dev/tty, or another PTY-compliant device. The IDLE REPL does not meet this requirement."
This makes me think the problem now comes from how I use pythonanywhere. Can someone give me some directions here ?