GitHub user user1500177 created a discussion: Attribute not found error in 
superset_config.py

I have used superset_config.py for adding my own configuration to Apache 
superset , i Bav eextedned the class indexview and created a new class call 
SupersetDashboardIndexView and called it accordingly.  I have added the file 
path to environment and then also made sure its loaded properly , BHT ITS 
THROWING ERROR AS 

I AM 100% SURE THAT THE CLASS IS DERIVE FROM THE IndexView Class and it's 
properly called with FAB_INDEX_VIEW


2025-08-02 05:29:49,694:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'SupersetDashboardIndexView' Traceback (most recent call 
last): File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", 
line 52, in dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,695:ERROR:flask_appbuilder.base:An error occurred when importing 
declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,694:ERROR:flask_appbuilder.base:module 'superset_config' has no 
attribute 'SupersetDashboardIndexView' Traceback (most recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: mo
 dule 'superset_config' has no attribute 'SupersetDashboardIndexView' 
2025-08-02 05:29:49,695:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,695:ERROR:flask_appbuilder.base:module 'superset_config' has no 
attribute 'SupersetDashboardIndexView' Traceback (most recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,695:ERROR:flask_appbuilder.base:An error occurred when importing 
declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,695:ERROR:flask_appbuilder.base:module 'superset_con
 fig' has no attribute 'SupersetDashboardIndexView' Traceback (most recent call 
last): File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", 
line 52, in dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,696:ERROR:flask_appbuilder.base:An error occurred when importing 
declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,699:INFO:superset.initialization:Setting database isolation level to 
READ COMMITTED 2025-08-02 05:29:49,700:INFO:superset.initialization:Setting 
database isolation level to READ COMMITTED 2025-08-02 
05:29:49,700:INFO:superset.initialization:Setting database isolation level to 
READ COMMITTED 2025-08-02 05:29:49,701:INFO:superset.initialization:Setting 
database isolation level to READ COMMITTED 2025-08-02 0
 5:29:49,701:INFO:superset.initialization:Setting database isolation level to 
READ COMMITTED 2025-08-02 05:29:49,701:ERROR:flask_appbuilder.base:module 
'superset_config' has no attribute 'SupersetDashboardIndexView' Traceback (most 
recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,702:ERROR:flask_appbuilder.base:An error occurred when importing 
declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,702:ERROR:flask_appbuilder.base:module 'superset_config' has no 
attribute 'SupersetDashboardIndexView' Traceback (most recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import 
 return reduce(getattr, tmp[1:], package) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
AttributeError: module 'superset_config' has no attribute 
'SupersetDashboardIndexView' 2025-08-02 
05:29:49,702:ERROR:flask_appbuilder.base:An error occurred when importing 
declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,702:INFO:superset.initialization:Setting database isolation level to 
READ COMMITTED 2025-08-02 05:29:49,702:ERROR:flask_appbuilder.base:module 
'superset_config' has no attribute 'SupersetDashboardIndexView' Traceback (most 
recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,703:ERROR:flask_appbuilder.base:An error occurred when importing decla
 red addon superset_config.SupersetDashboardIndexView: module 'superset_config' 
has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,703:ERROR:flask_appbuilder.base:module 'superset_config' has no 
attribute 'SupersetDashboardIndexView' Traceback (most recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,703:ERROR:flask_appbuilder.base:module 'superset_config' has no 
attribute 'SupersetDashboardIndexView' Traceback (most recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 05:29:49,
 703:ERROR:flask_appbuilder.base:An error occurred when importing declared 
addon superset_config.SupersetDashboardIndexView: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,703:ERROR:flask_appbuilder.base:An error occurred when importing 
declared addon superset_config.SupersetDashboardIndexView: module 
'superset_config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,704:ERROR:flask_appbuilder.base:module 'superset_config' has no 
attribute 'SupersetDashboardIndexView' Traceback (most recent call last): File 
"/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", line 52, in 
dynamic_class_import return reduce(getattr, tmp[1:], package) 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'superset_config' has 
no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,705:ERROR:flask_appbuilder.base:An error occurred when importing 
declared addon superset_config.SupersetDashboardIndexView: module 'superset_
 config' has no attribute 'SupersetDashboardIndexView' 2025-08-02 
05:29:49,934:INFO:superset.utils.screenshots:No PIL installation found 
2025-08-02 05:29:49,934:INFO:superset.utils.screenshots:No PIL installation 
found 2025-08-02 05:29:49,934:INFO:superset.utils.screenshots:No PIL 
installation found

GitHub link: https://github.com/apache/superset/discussions/34530

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to