You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/09/11 15:58:45 UTC

[GitHub] [superset] kenho811 commented on issue #20838: Superset 2.0.0 - PostgreSQL error - SQL Lab - 'dict' object has no attribute 'set'

kenho811 commented on issue #20838:
URL: https://github.com/apache/superset/issues/20838#issuecomment-1242993442

   The below comment solved my problem.
   
   https://github.com/apache/superset/issues/13275#issuecomment-864205737
   
   ======
   
   In short, my config file had the below line
   
   ```
   RESULTS_BACKEND = {
       "CACHE_TYPE": "SimpleCache",
       "CACHE_DIR": Path(__file__).parent.joinpath('cache'),
       "CACHE_KEY_PREFIX": "results_backend",  # make sure this string is unique to avoid collisions
       "CACHE_DEFAULT_TIMEOUT": 86400,  # 60 seconds * 60 minutes * 24 hours
   }
   ```
   The above is wrong, because `RESULTS_BACKEND` does NOT expect a python dictionary.l
   
   After changing the above to
   
   
   
   ```
   
   RESULTS_BACKEND = RedisCache(
       host="localhost",
       port=6379,
       key_prefix="superset_results",
       default_timeout= 86400,  # 60 seconds * 60 minutes * 24 hours
   )
   ```
   
   
   The issue is resolved.
   
   


-- 
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-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org