paulsonkevgit opened a new issue, #34441:
URL: https://github.com/apache/superset/issues/34441

   ### Bug description
   
   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 'MyDashboardView'
   2025-07-31 09:48:09,920:ERROR:flask_appbuilder.base:An error occurred when 
importing declared addon superset_config.MyDashboardView: module 
'superset_config' has no attribute 'MyDashboardView'
   2025-07-31 09:48:09,920:INFO:superset.initialization:Setting database 
isolation level to READ COMMITTED
   2025-07-31 09:48:09,920:ERROR:flask_appbuilder.base:module 'superset_config' 
has no attribute 'MyDashboardView'
   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)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   2025-07-31 09:48:09,921:ERROR:superset.app:Failed to create app
   Traceback (most recent call last):
     File "/app/superset/app.py", line 40, in create_app
       app_initializer.init_app()
     File "/app/superset/initialization/__init__.py", line 479, in init_app
       self.init_app_in_ctx()
     File "/app/superset/initialization/__init__.py", line 401, in 
init_app_in_ctx
       self.configure_fab()
     File "/app/superset/utils/decorators.py", line 266, in wrapped
       return on_error(ex)
              ^^^^^^^^^^^^
     File "/app/superset/utils/decorators.py", line 236, in on_error
       raise ex
     File "/app/superset/utils/decorators.py", line 259, in wrapped
       result = func(*args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^
     File "/app/superset/initialization/__init__.py", line 561, in configure_fab
       appbuilder.init_app(self.superset_app, db.session)
     File "/app/.venv/lib/python3.11/site-packages/flask_appbuilder/base.py", 
line 211, in init_app
       self.sm = self.security_manager_class(self)
   
   
   ITS VERIFIED THAT THIS CLASS IS PRESENT IN THE CONFIG file via deriving it 
from the IndexView class
   and the class authlib should be imported in FAB right...
   
   I have also made sure the class is passed correctly to FAC_INDEX_VIEW via
   
   FAB_INDEX_VIEW = f"{MyDashboardView.__module__}.{MyDashboardView.__name__}"
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to