dosubot[bot] commented on issue #29695: URL: https://github.com/apache/superset/issues/29695#issuecomment-2249253188
<!-- Greeting --> Hey @ylq5126! I'm here to help you out with any bugs, questions, or contributions you might have. Let's work together to solve this issue! <!-- Answer --> The `TypeError: cannot use a string pattern on a bytes-like object` error you're encountering is due to an incompatibility between Flask-Session 0.5.0 and Werkzeug 3.0.0. Flask-Session versions prior to 0.6.0 do not support Werkzeug 3.0.0, which causes this issue when setting cookies. To resolve this, you should upgrade Flask-Session to at least version 0.6.0, which includes support for Werkzeug 3.0.0. You can do this by updating your `requirements.txt` or `pyproject.toml` file to specify the newer version of Flask-Session. Here is an example of how you can update your `requirements.txt`: ```plaintext Flask-Session>=0.6.0 ``` Or if you are using `pyproject.toml`: ```toml [tool.poetry.dependencies] flask-session = ">=0.6.0" ``` After updating the dependency, make sure to reinstall the packages: ```bash pip install -r requirements.txt # or poetry install ``` This should resolve the `TypeError` and allow your server to start correctly with Redis for session management <sup>[[1]](https://github.com/apache/superset/blob/master/pyproject.toml)</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]
