dosubot[bot] commented on issue #34338: URL: https://github.com/apache/superset/issues/34338#issuecomment-3124570466
<!-- Answer --> This error happens when the backend persistence for SQL Lab is configured with a plain Python dict instead of a cachelib backend object. Superset expects RESULTS_BACKEND (and related settings) to be set to an instantiated cachelib object (like RedisCache or MemcachedCache), not a dictionary. If a dict is used, Superset tries to call set() on it and fails, causing the "'dict' object has no attribute 'set'" error. To fix this, make sure your config uses a cachelib backend object. For example, for Redis: ```python from cachelib.redis import RedisCache RESULTS_BACKEND = RedisCache(host='localhost', port=6379, db=0) ``` You can find more details in the [official caching configuration docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/configuration/cache.mdx). This is not a regression or internal bug, but a common configuration pitfall. Double-check your config to ensure you're not passing a dict where a cache object is required. <!-- 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/7a1ad48a-c5ca-4274-bd2d-ed44cdc570f6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7a1ad48a-c5ca-4274-bd2d-ed44cdc570f6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7a1ad48a-c5ca-4274-bd2d-ed44cdc570f6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7a1ad48a-c5ca-4274-bd2d-ed44cdc570f6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7a1ad48a-c5ca-4274-bd2d-ed44cdc570f6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7a1ad48a-c5ca-4274-bd2d-ed44cdc570f6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7a1ad48a-c5ca-4274-bd2d-ed44cdc570f6?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/34338) -- 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]
