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

I went to install a stock module in  my system but every time it gives me error like

yaml.constructor.ConstructorError: could not determine a constructor for the tag '!python'
  in "<byte string>", line 2, column 3:
      !python {model: ir.model.data, i ...
^

I check the code of the yml file it is same as the in odoo github file I was nothing to change in code.
I not understand way it is gives error.

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

update the code to the latest commit and then try again

Tác giả

I will pull latest code from git

check the pyyaml version, use the version less than 4 and see

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


pip3 instal PyYAML==3.13

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

Mostafa Thanks It is working now.

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

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

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

Thanks Mustofa,

It's working on odoo 11.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 23
2295
0
thg 4 23
2916
1
thg 3 23
2256
2
thg 2 23
3665
1
thg 1 23
16100