Replies: 2 comments 1 reply
-
==> import it from markupsafe instead of flask. For the future, you should test your code with deprecation warnings enabled. |
Beta Was this translation helpful? Give feedback.
1 reply
-
The problem was about not upgrading flask_wtf to newest version |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have no idea why i am getting this error. Can somebody help me to find the problem repo link: https://github.com/Bahromoken/Flask-Blog
The Error:
Traceback (most recent call last):
File "/home/bahrom/Desktop/flask/flask-posts/app.py", line 1, in
from webapp import app
File "/home/bahrom/Desktop/flask/flask-posts/webapp/init.py", line 20, in
from webapp import routes
File "/home/bahrom/Desktop/flask/flask-posts/webapp/routes.py", line 4, in
from webapp.forms import RegistrationForm, LoginForm
File "/home/bahrom/Desktop/flask/flask-posts/webapp/forms.py", line 1, in
from flask_wtf import FlaskForm
File "/home/bahrom/Desktop/flask/flask-posts/virtualenv/lib/python3.10/site-packages/flask_wtf/init.py", line 4, in
from .recaptcha import Recaptcha
File "/home/bahrom/Desktop/flask/flask-posts/virtualenv/lib/python3.10/site-packages/flask_wtf/recaptcha/init.py", line 1, in
from .fields import RecaptchaField
File "/home/bahrom/Desktop/flask/flask-posts/virtualenv/lib/python3.10/site-packages/flask_wtf/recaptcha/fields.py", line 3, in
from . import widgets
File "/home/bahrom/Desktop/flask/flask-posts/virtualenv/lib/python3.10/site-packages/flask_wtf/recaptcha/widgets.py", line 2, in
from flask import Markup
ImportError: cannot import name 'Markup' from 'flask' (/home/bahrom/Desktop/flask/flask-posts/virtualenv/lib/python3.10/site-packages/flask/init.py)
Beta Was this translation helpful? Give feedback.
All reactions