跳至內容
選單
此問題已被標幟
7 回覆
7702 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
11月 23
2273
0
4月 23
2868
1
3月 23
2253
2
2月 23
3647
1
1月 23
16054