Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
8229 Tampilan
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
Buang
Jawaban Terbai

Hi, 

Try: pip install "werkzeug==2.3.8"

It is the most stable with Odoo 17.

Avatar
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jul 23
5317
3
Mei 24
6653
1
Feb 22
3923
2
Mei 24
3291
1
Apr 24
5009