Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'want_bytes' from 'itsdangerous' #110

Closed
bschley opened this issue Oct 23, 2018 · 2 comments
Closed

ImportError: cannot import name 'want_bytes' from 'itsdangerous' #110

bschley opened this issue Oct 23, 2018 · 2 comments

Comments

@bschley
Copy link

bschley commented Oct 23, 2018

I started a new project with Flask-Session, which raises ImportError: cannot import name 'want_bytes' from 'itsdangerous' (c:\python37\lib\site-packages\itsdangerous\__init__.py).

Traceback (most recent call last):
  File "c:\python37\lib\site-packages\flask\cli.py", line 235, in locate_app
    __import__(module_name)
  File "C:\Users\PC\Desktop\BookLib\application.py", line 4, in <module>
    from flask_session import Session
  File "c:\python37\lib\site-packages\flask_session\__init__.py", line 16, in <module>
    from .sessions import NullSessionInterface, RedisSessionInterface, \
  File "c:\python37\lib\site-packages\flask_session\sessions.py", line 23, in <module>
    from itsdangerous import Signer, BadSignature, want_bytes
ImportError: cannot import name 'want_bytes' from 'itsdangerous' (c:\python37\lib\site-packages\itsdangerous\__init__.py)

The quick fix I did was to downgrade to the previous version, itsdangerous==0.24.

@davidism
Copy link
Member

davidism commented Oct 23, 2018

@davidism
Copy link
Member

itsdangerous 1.1.0 was just released and contains a fix for this. Flask-Session should still be fixed so it doesn't rely on this, but it won't fail for now. You can upgrade itsdangerous and continue to use Flask-Session.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants