dosubot[bot] commented on issue #36130:
URL: https://github.com/apache/superset/issues/36130#issuecomment-3540339979

   <!-- Greeting -->
   Hi @YizhiDu! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   The error you're seeing (`jinja2.exceptions.TemplateNotFound: 
superset/fab_overrides/list.html`) happens because Superset's permission views 
expect a custom template that should be present in the codebase at 
`superset/templates/superset/fab_overrides/list.html` and referenced by the 
relevant widgets and views. This template was not removed or renamed in 
6.0.0rc2, so the issue is likely with how templates are loaded or installed in 
your environment 
([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/templates/superset/fab_overrides/list.html)).
   
   A recent thread confirms that similar errors and broken menu items in 
6.0.0rc2 were caused by outdated template references and have been fixed in [PR 
#36058](https://github.com/apache/superset/issues/35027). Make sure your 
environment includes all the latest templates and that your installation isn't 
missing the `superset/templates/superset/fab_overrides/list.html` file. If you 
installed Superset via pip or built from source, try a clean install or 
rebuild, and confirm your template paths are correct.
   
   If you use a custom deployment (like a subpath or Docker), double-check that 
your template folders are mounted and accessible to Flask. If you have custom 
configuration flags for Flask AppBuilder security views, ensure they're enabled 
as needed:
   
   ```python
   FAB_ADD_SECURITY_PERMISSION_VIEW = True
   FAB_ADD_SECURITY_VIEW_MENU_VIEW = True
   FAB_ADD_SECURITY_PERMISSION_VIEWS_VIEW = True
   FAB_ADD_SECURITY_ROLE_VIEW = True
   FAB_ADD_SECURITY_USER_VIEW = True
   ```
   
   Once the template is accessible, the error should be resolved and the 
permissions views should work as expected.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/2a5ad140-dad6-4734-ac38-b24924eaaaca?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/2a5ad140-dad6-4734-ac38-b24924eaaaca?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/2a5ad140-dad6-4734-ac38-b24924eaaaca?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/2a5ad140-dad6-4734-ac38-b24924eaaaca?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/2a5ad140-dad6-4734-ac38-b24924eaaaca?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/2a5ad140-dad6-4734-ac38-b24924eaaaca?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/2a5ad140-dad6-4734-ac38-b24924eaaaca?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36130)


-- 
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