I'm trying to run this simple code:
from flask_app import app from flask_mail import Mail, Message mail = Mail(app) msg = Message("Testing daily mail", recipients=["firstname.lastname@example.org"]) msg.body = "Beep boop I'm a bot sending an email" msg.html = "<b>testing</b>" mail.send(msg)
And I get this on my log:
Traceback (most recent call last): File "/home/billpest/mysite/actividadesdiarias.py", line 3, in <module> from flask_app import app File "/home/billpest/mysite/flask_app.py", line 38, in <module> from flask_user import roles_required, UserManager, UserMixin, current_user, login_required ImportError: No module named flask_user 2020-11-04 20:25:15 -- Completed task, took 7.60 seconds, return code was 1.
I'm pretty sure I have flask-user installed since I'm running it without any problems on my main app; this error appears when I try a scheduled task.
Maybe I am doing something wrong but I don't see it.
Any help would be appreciated.