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

Hello, 

I installed odoo12 community version with all the dependencies as per requirements.txt file and other given dependencies on ubuntu 16.04. but while i run the server using command ./odoo-bin, i am getting this error 

from passlib.utils.compat import add_doc, b, bytes, join_bytes, join_byte_values, \
ImportError: cannot import name 'b'

Anyone knows the solution?

Any help would be highly appreciated



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

did you use this command to install Odoo 12



sudo pip3 install wheel
sudo pip3 install -r odoo/requirements.txt 
(all dependence meet here)
Ảnh đại diện
Huỷ bỏ
Tác giả

yes, and they were installed successfully. i didn't face any error here.

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

Hi, 

When I try to install odoo v13 CE, I got the same issue. And I got it resolved by downgrading the version of "passlib" from v1.7.1 to v1.6.5. In the Odoo 13 requirements, v1.6.5 is mentioned.

sudo pip3 install passlib==1.6.5 
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

pip3 install passlib==1.7.4

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

Use 

pip3 install -r requirements.txt. It works for me.
I used sudo pip3 install -r requirements.txt, but it won't work.
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Please try this. An error solved in my local system

sudo pip3 install passlib==1.6.5

sudo -H pip3 install --upgrade pip

sudo -H pip3 install pipenv

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 24
3363
1
thg 8 19
8781
0
thg 1 24
1377
0
thg 1 23
2259
2
thg 3 21
15651