The import failure seems to be related with the latest release version of the package itsdangerous.
Check the latest releases here
In my case, I made it work by explicitly adding the package dependency itsdangerous==2.0.1 in my requirements.txt file.
To make changes effective, update your virtual environment to reflect the new requirements.txt.