تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
7 الردود
7746 أدوات العرض

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
نوفمبر 23
2328
0
أبريل 23
2938
1
مارس 23
2285
2
فبراير 23
3692
1
يناير 23
16189