I'm trying to set up Odoo 16 and this error occurred: " AttributeError: 'FutureResponse' object has no attribute '_charset'
I have Werkzeug version 0.16.1 and Python 3.8.
Thank you for helping me
This is the whole ERROR
2023-08-09 13:26:38,915 9072 INFO odoo_db odoo.addons.base.models.res_users: Login successful for db:odoo_db login:admin from 127.0.0.1
2023-08-09 13:26:38,933 9072 ERROR odoo_db odoo.http: Exception during request handling.
Traceback (most recent call last):
File "C:\ERP\odoo\odoo\http.py", line 1998, in __call__
response = request._serve_db()
File "C:\ERP\odoo\odoo\http.py", line 1584, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "C:\ERP\odoo\odoo\service\model.py", line 133, in retrying
result = func()
File "C:\ERP\odoo\odoo\http.py", line 1613, in _serve_ir_http
self.registry['ir.http']._post_dispatch(response)
File "C:\ERP\odoo\addons\utm\models\ir_http.py", line 26, in _post_dispatch
super()._post_dispatch(response)
File "C:\ERP\odoo\odoo\addons\base\models\ir_http.py", line 161, in _post_dispatch
request.dispatcher.post_dispatch(response)
File "C:\ERP\odoo\odoo\http.py", line 1681, in post_dispatch
self.request._save_session()
File "C:\ERP\odoo\odoo\http.py", line 1512, in _save_session
self.future_response.set_cookie('session_id', sess.sid, max_age=SESSION_LIFETIME, httponly=True)
File "C:\ERP\odoo\odoo\http.py", line 1126, in set_cookie
werkzeug.Response.set_cookie(self, key, value=value, max_age=max_age, expires=expires, path=path, domain=domain, secure=secure, httponly=httponly, samesite=samesite)
File "C:\ERP\venv\lib\site-packages\werkzeug\sansio\response.py", line 258, in set_cookie
charset = self._charset if self._charset != "utf-8" else None
AttributeError: 'FutureResponse' object has no attribute '_charset'