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

Hello, community. My Odoo 14 service is crashing after being online and I'm getting this error: no module named werkzeug.posixemulation. Any clue?

Ảnh đại diện
Huỷ bỏ
Tác giả

Excellent. Thanks for your comment.

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

Hi,

Can you try bellow commands and see,

sudo pip3 uninstall Werkzeug
sudo pip3 install Werkzeug==0.11.15 
After installing the above package, restart odoo service.

Thanks

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

I had the same problem with odoo v15. This fixed the problem

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

Hi,

Please check your requirements.txt file and its version


then install your package from the settings 


Hope it helps

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

go and see requirement file they mentioned version of 

Werkzeug

so as per that version install it from terminal or got to settings > click on Project > Python Interpreter > click on + sign > search workzeug > iselect version in below > and install it 

pip3 install Werkzeug==version


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

Oddly enough the requirements.txt says this in the latest checkout of 14.0:

Werkzeug==0.16.1

So what breaks if you use this version? I mean we go back to 0.11... Why is Odoo going backwards? And why is the requirements.txt not up to date then?

EDIT: in my case I noticed after a while that I was running the system wide python3.8 binary and not the virtualenv python3.7 for which I had modified odoo-bin. After git stash pop to have the path set to my virtualenv python it worked again with 0.16.1.

Hope it helps someone else.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 21
6722
2
thg 7 21
3739
1
thg 11 20
3960
0
thg 4 24
1030
0
thg 12 23
1926