Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
7 Ответы
7724 Представления

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
2296
0
апр. 23
2916
1
мар. 23
2256
2
февр. 23
3666
1
янв. 23
16100