Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
19873 Vistas

After installing and setting up odoo15 with pycharm, its show up this message. I can access to databse creatiion page corrrectly, but after creating a database, it says 

Database creation error: module 'werkzeug.routing' has no attribute 'NumberConverter'


This are the latest logs

  File "/home/ting-er/Odoo/15.0/odoo/odoo/service/server.py", line 1210, in load_server_wide_modules
    odoo.modules.module.load_openerp_module(m)
  File "/home/ting-er/Odoo/15.0/odoo/odoo/modules/module.py", line 396, in load_openerp_module
    __import__('odoo.addons.' + module_name)
  File "/home/ting-er/Odoo/15.0/odoo/odoo/addons/base/__init__.py", line 5, in
    from . import models
  File "/home/ting-er/Odoo/15.0/odoo/odoo/addons/base/models/__init__.py", line 27, in
    from . import ir_http
  File "/home/ting-er/Odoo/15.0/odoo/odoo/addons/base/models/ir_http.py", line 71, in
    class SignedIntConverter(werkzeug.routing.NumberConverter):
AttributeError: module 'werkzeug.routing' has no attribute 'NumberConverter'
2022-07-29 14:04:11,417 79856 INFO ? odoo.service.server: HTTP service (werkzeug) running on TingEr:8015
2022-07-29 14:04:28,564 79856 INFO ? odoo.http: HTTP Configuring static files
2022-07-29 14:04:28,591 79856 INFO ? odoo.http: Generating nondb routing
2022-07-29 14:04:28,609 79856 INFO ? werkzeug: 127.0.0.1 - - [29/Jul/2022 14:04:28] "GET / HTTP/1.1" 303 - 1 0.002 0.039


and the odoo.conf file

[options]
; This is the password that allows database operations:
admin_passwd = 123456
db_host = localhost
db_user = odoo15
db_password = 123456
db_port = 5432
addons_path = /home/ting-er/桌面/Odoo/15.0/odoo/addons
http_port = 8015


Avatar
Descartar
Mejor respuesta

Hello velvetsands,

It seems, your werkzeug version is not latest.

you can check your werkzeug version by following command.

pip freeze | grep Werkzeug

As per odoo's requirement.txt file, we should use Werkzeug==0.16.1 version

you can install correct version using following command.

pip3 install Werkzeug==0.16.1  


Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
    

Avatar
Descartar

`Requirement already satisfied: Werkzeug==0.16.1 in ./.local/lib/python3.8/site-packages (0.16.1)`

still getting same error

Mejor respuesta

Fixed With !   pip3 install Werkzeug==0.16.1  

Thanks!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 23
4416
1
feb 23
2980
2
oct 23
1609
1
jul 22
1985
1
abr 22
4734