dosubot[bot] commented on issue #34441: URL: https://github.com/apache/superset/issues/34441#issuecomment-3141845152
<!-- Answer --> The error is likely because your config file fails to load fully, so MyDashboardView never becomes available as a module attribute. In your snippet, FLASK_APP_MUTATOR is set to view9, but there’s no definition for view9—this will cause an import error and prevent the config from loading, which in turn makes MyDashboardView unavailable for dynamic import. Try either removing or correcting this assignment (e.g., set FLASK_APP_MUTATOR = view1 if that’s what you meant). Also, make sure your config file is in the correct location and named properly for your environment: if you’re running in Docker Compose, it should be superset_config_docker.py in ./docker/pythonpath_dev/ on your host. Otherwise, set the SUPERSET_CONFIG_PATH environment variable to the config’s full path inside the container. If the config isn’t loaded, Superset won’t see your custom class, no matter how it’s defined ([details](https://github.com/apache/superset/issues/33702)). Finally, check the Superset logs for any syntax or import errors in your config file—any error will prevent all attributes (including MyDashboardView) from being available for dynamic import ([reference](https://github.com/apache/superset/discussions/18571)). Fixing these should resolve the AttributeError. <!-- 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/036f3084-68a2-405b-93c7-0d19c7eeb1f2?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/036f3084-68a2-405b-93c7-0d19c7eeb1f2?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/036f3084-68a2-405b-93c7-0d19c7eeb1f2?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/036f3084-68a2-405b-93c7-0d19c7eeb1f2?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/036f3084-68a2-405b-93c7-0d19c7eeb1f2?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/036f3084-68a2-405b-93c7-0d19c7eeb1f2?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/036f3084-68a2-405b-93c7-0d19c7eeb1f2?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](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/issues/34441) -- 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]
