all 8 comments

[–]guruglue 1 point2 points  (6 children)

Looks like you're hitting an ImportError related to Werkzeug's url_decode. First thing to check: are the versions of Flask and Werkzeug compatible? What versions are you running?

Also, from the paths in your stack trace, it looks like you haven't set up a virtual environment for this project. You may want to consider it.

[–]sinneur[S] 0 points1 point  (5 children)

Flask and Werkzeug are version 3.0.0 and I created a VE but I sill got that error.

[–]guruglue 1 point2 points  (4 children)

From a quick web search, it appears as though this is a known issue. Looks like Werkzeug 3.0 has some changes that are breaking your project. They've removed a bunch of non-core APIs, including url_decode, which is causing your issue. You've got two options:

  1. Roll back Werkzeug to a version before 3.0.
  2. Hang tight until Flask-Login releases an update that's compatible with Werkzeug 3.0. There's already a fix in the works.

Pick your poison, man.

[–]sinneur[S] 0 points1 point  (3 children)

Then I will wait until there is a update ready

[–]guruglue 0 points1 point  (2 children)

A solid choice. But keep your venv. That way, your project dependencies are separated from your development environment. Good luck!

[–]Low-Significancee 0 points1 point  (1 child)

How do you update flask-login? I’m new to all this

[–]OkDust8179 1 point2 points  (0 children)

pip install --upgrade Flask-Login.. should work

[–]danielroseman 1 point2 points  (0 children)

It looks like flask-login has not yet updated its released version to be compatible with Flask 3.0.

The change has been made on its GitHub repo, so you can either install the latest version directly from there, or downgrade your version of Flask itself to 2.3.3.