Hello
During the update from Odoo 12.0 to 12.0, a critical error occurred: ImportError: cannot import name 'babel_locale_parse'
At the end of the update, the website has a 500 error and the backend part reports errors. How to fix this problem when updating all modules? Thank you in advance.
Command used on Debian 9.13
service odoo stop cd /odoo/odoo12 ./odoo-bin -r odoo -d ODOO -u all mkdir -p /odoo/sources cd /odoo/sources git clone https://github.com/odoo/odoo.git -b 12.0 cp -rv odoo /odoo/odoo12 cd /odoo/odoo12 chmod -R 777 ./ chown -R odoo:odoo ./ pip3 install -r requirements.txt service odoo stop ./odoo-bin -r odoo -d ODOO -u all # <--- the error this occurs here |
Log of error :
2021-02-26 16:10:04,243 628 INFO ODOO odoo.tools.translate: loading /odoo/odoo12/odoo/addons/web_diagram/i18n/fr.po 2021-02-26 16:10:04,342 628 CRITICAL ODOO odoo.modules.module: Couldn't load module web_editor 2021-02-26 16:10:04,342 628 CRITICAL ODOO odoo.modules.module: cannot import name 'babel_locale_parse' 2021-02-26 16:10:04,347 628 WARNING ODOO odoo.modules.loading: Transient module states were reset 2021-02-26 16:10:04,349 628 ERROR ODOO odoo.modules.registry: Failed to load registry Traceback (most recent call last): File "/odoo/odoo12/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/odoo/odoo12/odoo/modules/loading.py", line 419, in load_modules force, status, report, loaded_modules, update_module, models_to_check) File "/odoo/odoo12/odoo/modules/loading.py", line 315, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/odoo/odoo12/odoo/modules/loading.py", line 181, in load_module_graph load_openerp_module(package.name) File "/odoo/odoo12/odoo/modules/module.py", line 368, in load_openerp_module __import__('odoo.addons.' + module_name) File "/odoo/odoo12/odoo/modules/module.py", line 82, in load_module exec(open(modfile, 'rb').read(), new_mod.__dict__) File "<string>", line 5, in <module> File "/odoo/odoo12/odoo/addons/web_editor/models/__init__.py", line 5, in <module> from . import ir_qweb File "/odoo/odoo12/odoo/addons/web_editor/models/ir_qweb.py", line 35, in <module> from odoo.tools.misc import babel_locale_parse ImportError: cannot import name 'babel_locale_parse' 2021-02-26 16:10:04,351 628 CRITICAL ODOO odoo.service.server: Failed to initialize database `ODOO`. Traceback (most recent call last): File "/odoo/odoo12/odoo/service/server.py", line 1042, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "/odoo/odoo12/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/odoo/odoo12/odoo/modules/loading.py", line 419, in load_modules force, status, report, loaded_modules, update_module, models_to_check) File "/odoo/odoo12/odoo/modules/loading.py", line 315, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/odoo/odoo12/odoo/modules/loading.py", line 181, in load_module_graph load_openerp_module(package.name) File "/odoo/odoo12/odoo/modules/module.py", line 368, in load_openerp_module __import__('odoo.addons.' + module_name) File "/odoo/odoo12/odoo/modules/module.py", line 82, in load_module exec(open(modfile, 'rb').read(), new_mod.__dict__) File "<string>", line 5, in <module> File "/odoo/odoo12/odoo/addons/web_editor/models/__init__.py", line 5, in <module> from . import ir_qweb File "/odoo/odoo12/odoo/addons/web_editor/models/ir_qweb.py", line 35, in <module> from odoo.tools.misc import babel_locale_parse ImportError: cannot import name 'babel_locale_parse' 2021-02-26 16:10:04,358 628 INFO ODOO odoo.modules.loading: loading 1 modules... |