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

   <!-- Answer -->
   The warning "Class 'werkzeug.local.LocalProxy' is not mapped" is likely due 
to the use of `LocalProxy` objects in the Superset code. To resolve this 
warning, ensure that these `LocalProxy` objects are not being inadvertently 
passed to SQLAlchemy or any other ORM that expects a mapped class. You can 
access the actual object behind the proxy before passing it to SQLAlchemy:
   
   ```python
   # Instead of passing the proxy directly, access the underlying object
   actual_results_backend = results_backend._get_current_object()
   # Use actual_results_backend in your ORM operations
   ```
   
   Additionally, there has been a recent update in the Superset codebase that 
addresses this warning. The update is mentioned in the `CHANGELOG/4.0.0.md` 
file under the version 4.0.0 section:
   
   ```md
   - [#27164](https://github.com/apache/superset/pull/27164) fix: unlock and 
bump werkzeug (@dpgaspar)
   ```
   
   This update includes changes that address the warning related to 
`werkzeug.local.LocalProxy` 
<sup>[[1]](https://github.com/apache/superset/issues/29403)</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