'module' object has no attribute 'NullTranslations'
See original GitHub issueMake sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if any
- I have reproduced the issue with at least the latest released version of superset
- I have checked the issue tracker for the same issue and I haven’t found one similar
Superset version
master
Expected results
Actual results
when i run : superset runserver
Traceback (most recent call last):
File "/usr/local/bin/superset", line 12, in <module>
from superset.cli import manager
File "/usr/lib/python2.7/site-packages/superset-0.18.5-py2.7.egg/superset/__init__.py", line 131, in <module>
security_manager_class=app.config.get("CUSTOM_SECURITY_MANAGER"))
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/base.py", line 131, in __init__
self.init_app(app, session)
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/base.py", line 157, in init_app
self._add_admin_views()
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/base.py", line 254, in _add_admin_views
self.sm.register_views()
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/security/sqla/manager.py", line 67, in register_views
super(SecurityManager, self).register_views()
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/security/manager.py", line 443, in register_views
category_label=_('Security'))
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/base.py", line 345, in add_view
baseview = self._check_and_init(baseview)
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/base.py", line 297, in _check_and_init
baseview = baseview()
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/views.py", line 451, in __init__
super(ModelView, self).__init__(**kwargs)
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/baseviews.py", line 628, in __init__
super(BaseCRUDView, self).__init__(**kwargs)
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/baseviews.py", line 395, in __init__
self._init_properties()
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/baseviews.py", line 679, in _init_properties
super(BaseCRUDView, self)._init_properties()
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/baseviews.py", line 423, in _init_properties
self._gen_labels_columns(list_cols)
File "/usr/lib/python2.7/site-packages/Flask_AppBuilder-1.9.1-py2.7.egg/flask_appbuilder/baseviews.py", line 405, in _gen_labels_columns
if not self.label_columns.get(col):
File "/usr/lib/python2.7/site-packages/Flask_Babel-0.11.2-py2.7.egg/flask_babel/speaklater.py", line 26, in __len__
return len(text_type(self))
File "/usr/lib/python2.7/site-packages/Flask_Babel-0.11.2-py2.7.egg/flask_babel/speaklater.py", line 23, in __str__
return text_type(self._func(*self._args, **self._kwargs))
File "/usr/lib/python2.7/site-packages/Flask_Babel-0.11.2-py2.7.egg/flask_babel/__init__.py", line 552, in gettext
t = get_translations()
File "/usr/lib/python2.7/site-packages/Flask_Babel-0.11.2-py2.7.egg/flask_babel/__init__.py", line 217, in get_translations
return support.NullTranslations()
AttributeError: 'module' object has no attribute 'NullTranslations'
Steps to reproduce
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
'module' object has no attribute 'NullTranslations' #3182 - GitHub
Looks like something is wrong between flask-appbuilder and flask-babel. Flask-Babel 0.11.1 appears to work fine here.
Read more >SALT AttributeError: 'module' object has no attribute 'dockermod'
The error is due to AttributeError: 'module' object that has no attribute 'dockermod'. This is due to a known and fixed regression in...
Read more >AttributeError: 'module' object has no attribute - Stack Overflow
E.g. I had a module called commands which is also a Python library module. This proved to be difficult to track down as...
Read more >gettext — Multilingual internationalization services — Python ...
The gettext module provides internationalization (I18N) and localization (L10N) services for your Python modules and applications. It supports both the GNU ...
Read more >[PATCH 6 of 8 v2] i18n: python3 handle ugettext + unicode
... 'NullTranslations' > object has no attribute 'ugettext' (error at i18n.py:*) (glob) > hgext/automv.py: error importing module: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like something is wrong between flask-appbuilder and flask-babel. Flask-Babel 0.11.1 appears to work fine here.
Notice: this issue has been closed because it has been inactive for 192 days. Feel free to comment and request for this issue to be reopened.