dosubot[bot] commented on issue #29908:
URL: https://github.com/apache/superset/issues/29908#issuecomment-2280885515

   <!-- Answer -->
   The `FileSystemCache` object does not have a `_get_current_object` method, 
which is causing the `AttributeError`. To resolve this, you should not use 
`_get_current_object` with `FileSystemCache`. Instead, you can directly use the 
`RESULTS_BACKEND` object.
   
   Here’s how you can modify your `superset_config.py`:
   
   1. **Remove the `_get_current_object` call**: Directly use the 
`RESULTS_BACKEND` object without trying to access an underlying object.
   
   ```python
   from flask_caching.backends.filesystemcache import FileSystemCache
   
   # Initialize the results_backend
   RESULTS_BACKEND = FileSystemCache("/app/superset_home/sqllab")
   
   # Directly use RESULTS_BACKEND without _get_current_object
   actual_results_backend = RESULTS_BACKEND
   ```
   
   2. **Ensure proper usage in your application**: Wherever you need to use 
`actual_results_backend`, you can now directly use it without any additional 
method calls.
   
   This should resolve the `AttributeError` and allow Superset to start 
correctly 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/__init__.py)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
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]

Reply via email to