Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
8294 Visualizzazioni
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
Abbandona
Risposta migliore

Hi, 

Try: pip install "werkzeug==2.3.8"

It is the most stable with Odoo 17.

Avatar
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 23
5345
3
mag 24
6690
1
feb 22
3952
2
mag 24
3320
1
apr 24
5034