Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
7 Відповіді
7686 Переглядів

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
2254
0
квіт. 23
2851
1
бер. 23
2236
2
лют. 23
3633
1
січ. 23
16013