Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
7 ตอบกลับ
7698 มุมมอง

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.

อวตาร
ละทิ้ง

update the code to the latest commit and then try again

ผู้เขียน

I will pull latest code from git

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

คำตอบที่ดีที่สุด


pip3 instal PyYAML==3.13

อวตาร
ละทิ้ง
ผู้เขียน

Mostafa Thanks It is working now.

คำตอบที่ดีที่สุด

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Thanks Mustofa,

It's working on odoo 11.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ย. 23
2260
0
เม.ย. 23
2862
1
มี.ค. 23
2249
2
ก.พ. 23
3643
1
ม.ค. 23
16048