dosubot[bot] commented on issue #32791: URL: https://github.com/apache/superset/issues/32791#issuecomment-2743509793
<!-- Answer --> The issue you're encountering is due to the `GSheetsEngineSpec` being added to the `DBS_AVAILABLE_DENYLIST`, which results in it being removed from the `available_specs`. Consequently, when the code tries to access `available_specs[GSheetsEngineSpec]` to set the `HAS_GSHEETS_INSTALLED` key in the `frontend_config`, it raises a `KeyError` because `GSheetsEngineSpec` is no longer present in `available_specs`. To resolve this issue, you can modify the code to check if `GSheetsEngineSpec` is in `available_specs` before attempting to access it. Here's a potential solution: ```python frontend_config["HAS_GSHEETS_INSTALLED"] = GSheetsEngineSpec in available_specs and bool(available_specs[GSheetsEngineSpec]) ``` This change ensures that the code only attempts to access `available_specs[GSheetsEngineSpec]` if `GSheetsEngineSpec` is indeed present in `available_specs`, thus preventing the `KeyError`. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/90442287-2420-4dc3-ba74-51a9f3b63437?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/90442287-2420-4dc3-ba74-51a9f3b63437?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/90442287-2420-4dc3-ba74-51a9f3b63437?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/90442287-2420-4dc3-ba74-51a9f3b63437?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/90442287-2420-4dc3-ba74-51a9f3b63437?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/90442287-2420-4dc3-ba74-51a9f3b63437?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/90442287-2420-4dc3-ba74-51a9f3b63437?feedback_type=other)</sup> -- 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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org