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

Getting import Error #162

Closed
naveen-varshney opened this issue Feb 11, 2020 · 2 comments
Closed

Getting import Error #162

naveen-varshney opened this issue Feb 11, 2020 · 2 comments

Comments

@naveen-varshney
Copy link

from flask_babel import Babel, gettext /usr/local/lib/python3.6/dist-packages/flask_babel/__init__.py:19: in <module> from werkzeug import ImmutableDict E ImportError: cannot import name 'ImmutableDict'

Flask-1.1.1
Flask-Babel-0.12.2
Werkzeug-1.0.0

I think there is some new version is released of Werkzeug.
Kindly help me out.

@TkTech
Copy link
Contributor

TkTech commented Feb 11, 2020

Update flask-babel to version >=1.0.0.

@TkTech TkTech closed this as completed Feb 11, 2020
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jul 9, 2020
The python3-werkzeug 1.0.0 requires this package to be updated.
Fixes:
File "/usr/lib/python3.8/site-packages/flask_babel/__init__.py", line 19, in <module>
    from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)

python-babel/flask-babel#162

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jul 10, 2020
The python3-werkzeug 1.0.0 requires this package to be updated.
Fixes:
File "/usr/lib/python3.8/site-packages/flask_babel/__init__.py", line 19, in <module>
    from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)

python-babel/flask-babel#162

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jul 10, 2020
The python3-werkzeug 1.0.0 requires this package to be updated.
Fixes:
File "/usr/lib/python3.8/site-packages/flask_babel/__init__.py", line 19, in <module>
    from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)

python-babel/flask-babel#162

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this issue Jul 10, 2020
The python3-werkzeug 1.0.0 requires this package to be updated.
Fixes:
File "/usr/lib/python3.8/site-packages/flask_babel/__init__.py", line 19, in <module>
    from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)

python-babel/flask-babel#162

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
halstead pushed a commit to openembedded/meta-openembedded that referenced this issue Jul 13, 2020
The python3-werkzeug 1.0.0 requires this package to be updated.
Fixes:
File "/usr/lib/python3.8/site-packages/flask_babel/__init__.py", line 19, in <module>
    from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)

python-babel/flask-babel#162

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
@Obed101
Copy link

Obed101 commented May 10, 2022

Update Babel from here
I believe it will solve your problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants