Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
7787 Vistas
ubuntu@ip-xxx-xx-xx-xxx:~$ sudo tail -f /var/log/odoo/odoo.log
    from . import models
  File "/opt/odoo/odoo/addons/base/models/__init__\.py",\ line\ 27,\ in\ 
\ \ \ \ from\ \.\ import\ ir_http
\ \ File\ "/opt/odoo/odoo/addons/base/models/ir_http\.py",\ line\ 71,\ in\ 
\ \ \ \ class\ SignedIntConverter\(werkzeug\.routing\.NumberConverter\):
AttributeError:\ module\ 'werkzeug\.routing'\ has\ no\ attribute\ 'NumberConverter'
2023\-07\-13\ 05:42:30,474\ 1385665\ INFO\ \?\ odoo\.service\.server:\ HTTP\ service\ \(werkzeug\)\ running\ on\ ip-xxx-xx-xx-xxx.ap-south-1.compute.internal:8069
2023-07-13 05:42:50,040 1385665 INFO ? odoo.http: HTTP Configuring static files
2023-07-13 05:42:50,103 1385665 INFO ? odoo.http: Generating nondb routing
2023-07-13 05:42:50,147 1385665 INFO ? werkzeug: 127.0.0.1 - - [13/Jul/2023 05:42:50] "GET /my HTTP/1.0" 404 - 1 0.044 0.053

I tried werkzueg 15.0 and Werkzeug==0.16.1 versions still getting the same error

My primary sub-domain intranet.domain.in is showing 404 error and other sub-domains are showing a fresh odoo select database page.

I think the database connection failed due to some issue with the werkzeug.

Please help me to fix this issue.

Avatar
Descartar
Mejor respuesta

Hi, 

Try: pip install "werkzeug==2.3.8"

It is the most stable with Odoo 17.

Avatar
Descartar
Mejor respuesta

I work by updating Werkzeug to version 2.3.3 in Odoo 14 and then restarting the server

pip install werkzeug==2.3.3


Avatar
Descartar
Mejor respuesta

Hi,

As per this solution:  https://www.odoo.com/forum/help-1/attributeerror-module-werkzeug-routing-has-no-attribute-numberconverter-207496 it says 0.16.1 version of Werkzeug will resolve the case.


As you said that you already have installed it, can you confirm that you are using the same python environment in which you have installed the package. There is cases, people will install packages in default python version and running odoo with using diff. python, ie using venv , can you confirm the same in your case. Also once package is installed, make sure to stop and start the service.

Thanks

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 23
5075
3
may 24
6389
1
feb 22
3740
2
may 24
3087
1
abr 24
4824