跳至内容
菜单
此问题已终结

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



形象
丢弃
最佳答案

did you use this command to install Odoo 12



sudo pip3 install wheel
sudo pip3 install -r odoo/requirements.txt 
(all dependence meet here)
形象
丢弃
编写者

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

最佳答案

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 
形象
丢弃
最佳答案

pip3 install passlib==1.7.4

形象
丢弃
最佳答案

Use 

pip3 install -r requirements.txt. It works for me.
I used sudo pip3 install -r requirements.txt, but it won't work.
形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
3
6月 24
3295
1
8月 19
8736
0
1月 24
1347
0
1月 23
2240
2
3月 21
15551