twintechlabs / flaskdash

Flask starter app featuring CoreUI and the FlaskUser module.
Other
114 stars 29 forks source link

ImportError: cannot import name 'url_encode' from 'werkzeug' #13

Closed rushasdev closed 4 years ago

rushasdev commented 4 years ago

When I try to init_db, python manage.py init_db I'm getting following error: ImportError: cannot import name 'url_encode' from 'werkzeug' (/home/rhasoff/Documents/Flask/flaskdash/venv/lib/python3.7/site-packages/werkzeug/__init__.py)

I'm using python 3.7.5 and venv as virtual environment.

rushasdev commented 4 years ago

It appears that url_encode is deprecated in Werkzeug 1.0 and older version of Flask-WTForms depends on it, as explained here

Upgrading Flask-WTForms from 0.14.1 to current version (0.14.3) solved the issue for me.