Skip to Content
Menú
This question has been flagged
7 Respostes
7713 Vistes

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.

Avatar
Descartar

update the code to the latest commit and then try again

Autor

I will pull latest code from git

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

Best Answer


pip3 instal PyYAML==3.13

Avatar
Descartar
Autor

Mostafa Thanks It is working now.

Best Answer

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

Avatar
Descartar
Best Answer

Thanks Mustofa,

It's working on odoo 11.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de nov. 23
2281
0
d’abr. 23
2875
1
de març 23
2254
2
de febr. 23
3654
1
de gen. 23
16078