I am using Flask-Session and recently installed or upgraded to itsdangerous 1.0.0. Now I get the error ImportError: cannot import name \'want_bytes\'
. Why is this e
The file structure of the itsdangerous package has changed. The function resides in the session.py file. Changing the import statements from:
from itsdangerous import Signer, BadSignature, want_bytes
to
from itsdangerous import Signer, BadSignature
from itsdangerous.encoding import want_bytes
works for me.