Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How to solve deprecated dependancy in Odoo 16

Subscriure's

Get notified when there's activity on this post

This question has been flagged
2 Respostes
5693 Vistes
Avatar
Turi

Hi,

I've been learning Odoo in my local Community edition installation. I had stable version in Git but when I tried to start Odoo it gave internal server error. When I checked the Odoo logs I was given the following error:


2023-08-28 11:29:56,315 7800 WARNING localhost_db py.warnings: E:\odoo16\server\odoo\http.py:1459: DeprecationWarning: 'werkzeug.urls.url_parse' is deprecated and will be removed in Werkzeug 3.0. Use 'urllib.parse.urlsplit' instead.

File "E:\miniconda3\lib\threading.py", line 973, in _bootstrap

self._bootstrap_inner()

File "E:\miniconda3\lib\threading.py", line 1016, in _bootstrap_inner

self.run()

File "E:\miniconda3\lib\threading.py", line 953, in run

self._target(*self._args, **self._kwargs)

File "E:\miniconda3\lib\socketserver.py", line 683, in process_request_thread

self.finish_request(request, client_address)

File "E:\miniconda3\lib\socketserver.py", line 360, in finish_request

self.RequestHandlerClass(request, client_address, self)

File "E:\miniconda3\lib\socketserver.py", line 747, in __init__

self.handle()

File "E:\miniconda3\lib\site-packages\werkzeug\serving.py", line 392, in handle

super().handle()

File "E:\miniconda3\lib\http\server.py", line 433, in handle

self.handle_one_request()

File "E:\miniconda3\lib\http\server.py", line 421, in handle_one_request

method()

File "E:\miniconda3\lib\site-packages\werkzeug\serving.py", line 364, in run_wsgi

execute(self.server.app)

File "E:\miniconda3\lib\site-packages\werkzeug\serving.py", line 325, in execute

application_iter = app(environ, start_response)

File "E:\odoo16\server\odoo\http.py", line 1998, in __call__

response = request._serve_db()

File "E:\odoo16\server\odoo\http.py", line 1584, in _serve_db

return service_model.retrying(self._serve_ir_http, self.env)

File "E:\odoo16\server\odoo\service\model.py", line 133, in retrying

result = func()

File "E:\odoo16\server\odoo\http.py", line 1611, in _serve_ir_http

response = self.dispatcher.dispatch(rule.endpoint, args)

File "E:\odoo16\server\odoo\http.py", line 1725, in dispatch

return self.request.registry['ir.http']._dispatch(endpoint)

File "E:\odoo16\server\odoo\addons\base\models\ir_http.py", line 154, in _dispatch

result = endpoint(**request.params)

File "E:\odoo16\server\odoo\http.py", line 697, in route_wrapper

result = endpoint(self, *args, **params_ok)

File "E:\odoo16\server\odoo\addons\portal\controllers\web.py", line 16, in index

return super().index(*args, **kw)

File "E:\odoo16\server\odoo\http.py", line 697, in route_wrapper

result = endpoint(self, *args, **params_ok)

File "E:\odoo16\server\odoo\addons\web\controllers\home.py", line 34, in index

return request.redirect_query('/web', query=request.params)

File "E:\odoo16\server\odoo\http.py", line 1467, in redirect_query

return self.redirect(location, code=code, local=local)

File "E:\odoo16\server\odoo\http.py", line 1459, in redirect

location = '/' + url_parse(location).replace(scheme='', netloc='').to_url().lstrip('/')


...Other errors like the one above...


2023-08-28 11:30:24,219 7800 ERROR localhost_db odoo.http: Exception during request handling. 

Traceback (most recent call last):

File "E:\odoo16\server\odoo\http.py", line 1998, in __call__

response = request._serve_db()

File "E:\odoo16\server\odoo\http.py", line 1584, in _serve_db

return service_model.retrying(self._serve_ir_http, self.env)

File "E:\odoo16\server\odoo\service\model.py", line 133, in retrying

result = func()

File "E:\odoo16\server\odoo\http.py", line 1613, in _serve_ir_http

self.registry['ir.http']._post_dispatch(response)

File "E:\odoo16\server\odoo\addons\utm\models\ir_http.py", line 26, in _post_dispatch

super()._post_dispatch(response)

File "E:\odoo16\server\odoo\addons\base\models\ir_http.py", line 161, in _post_dispatch

request.dispatcher.post_dispatch(response)

File "E:\odoo16\server\odoo\http.py", line 1681, in post_dispatch

self.request._save_session()

File "E:\odoo16\server\odoo\http.py", line 1512, in _save_session

self.future_response.set_cookie('session_id', sess.sid, max_age=SESSION_LIFETIME, httponly=True)

File "E:\odoo16\server\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 "E:\miniconda3\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'


I didn't touch dependencies and the error seemingly appeared out of nowhere. Does anyone have experience how to solve this error in Odoo?


Version: Odoo 16 Community Edition, installed locally


Best regards, Turi.

0
Avatar
Descartar
Avatar
Turi
Autor Best Answer

Fixed.

The application was bricked same date that new Python version came out so I figured that might (or might not) have something to do with it. I downloaded latest stable Python release, created new virtual environment in PyCharm using said Python version and installed requirements.txt again. After that the project works like before.

0
Avatar
Descartar
Avatar
Mehjabin Farsana
Best Answer

Hi,
Try this commands:

sudo pip3 uninstall werkzeug

sudo pip3 install werkzeug Werkzeug==0.16.1


See: https://www.odoo.com/forum/help-1/odoo-http-exception-during-request-handling-224343

Thanks

1
Avatar
Descartar
Turi
Autor

Hi,
Thank you for the suggestion but unfortunately it didn't work, I am still receiving the same error. I believe the problem could be that I have to start using urllib.parse instead of werkzeug but I don't know how to replace all instances of the werkzeug and if they have the same interfaces.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now