Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
46281 Lượt xem

am starting with odoo 12 on ubuntu 18.04 and when starting the server it says ModuleNotFoundError: No module named 'babel'

need help

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

use this command in terminal 
sudo pip3 install babel

Ảnh đại diện
Huỷ bỏ

This worked for me in odoo 12

Câu trả lời hay nhất

I had a similar problem when trying to start odoo from the CLI. It was because I had not activated the virtual environment before starting odoo.

this is the command: source /bin/activate

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I'm having the same issue on centos and when I try to install babel it gives me this 

Requirement already satisfied: babel in ./odoo12-venv/lib/python3.6/site-packages (2.3.4)

Requirement already satisfied: pytz>=0a in ./odoo12-venv/lib/python3.6/site-packages (from babel) (2016.7)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

"babel" is a Python module, one of the requirements that Odoo has, as listed in the requirements.txt file.

https://github.com/odoo/odoo/blob/12.0/requirements.txt

https://github.com/odoo/odoo/blob/13.0/requirements.txt

Babel==2.6.0

See the section "Dependencies" at:

https://www.odoo.com/documentation/12.0/setup/install.html#setup-install-source

https://www.odoo.com/documentation/13.0/setup/install.html#setup-install-source

If you don't want to install using the documented method, you can search your favorite search engine for help to install Babel.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 23
5064
1
thg 8 22
13956
4
thg 8 22
16244
4
thg 2 21
19495
0
thg 10 18
4240