GitHub user dosubot[bot] added a comment to the discussion: Attribute not found error in superset_config.py
<!-- Answer --> Yes, customizing the IndexView via FLASK_APP_MUTATOR is the only supported method in Superset v5—FAB_INDEX_VIEW is ignored and will always result in the AttributeError you saw, even if your class is defined correctly ([source](https://github.com/apache/superset/issues/34441)). If your OAuth config is working, your config file is being loaded, but if your custom IndexView isn’t applied, it usually means FLASK_APP_MUTATOR isn’t set or isn’t running as expected. For Docker Compose, your config file must be at `/app/docker/pythonpath_dev/superset_config_docker.py` inside the container (host: `./docker/pythonpath_dev/superset_config_docker.py`), and you must restart all containers after changes ([source](https://github.com/apache/superset/discussions/25487)). Placing the config elsewhere or setting the `SUPERSET_CONFIG_PATH` env var can break config loading and cause exactly this error ([source](https://github.com/apache/superset/issues/34441)). Also, make sure your Dockerfile or compose setup mounts the config directory correctly and that the `PYTHONPATH` includes `/app/docker/pythonpath_dev`. To debug: add `raise Exception("test")` at the top of your config file and restart—if you don’t see the error in logs, the config isn’t loaded. Add a print/log statement inside your FLASK_APP_MUTATOR to confirm it runs. If you still have issues, compare your Dockerfile and compose setup to the official one, focusing on volume mounts and environment variables ([source](https://github.com/apache/superset/issues/34441)). <!-- 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/ad673bd1-c1ca-4f29-a18e-dd3b3d17b5a7?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ad673bd1-c1ca-4f29-a18e-dd3b3d17b5a7?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ad673bd1-c1ca-4f29-a18e-dd3b3d17b5a7?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ad673bd1-c1ca-4f29-a18e-dd3b3d17b5a7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ad673bd1-c1ca-4f29-a18e-dd3b3d17b5a7?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ad673bd1-c1ca-4f29-a18e-dd3b3d17b5a7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ad673bd1-c1ca-4f29-a18e-dd3b3d17b5a7?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34530) GitHub link: https://github.com/apache/superset/discussions/34530#discussioncomment-14067530 ---- 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]
