Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
7 Odgovori
7847 Prikazi

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
Opusti

update the code to the latest commit and then try again

Avtor

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
Opusti
Avtor

Mostafa Thanks It is working now.

Best Answer

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

Avatar
Opusti
Best Answer

Thanks Mustofa,

It's working on odoo 11.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
nov. 23
2369
0
apr. 23
2961
1
mar. 23
2336
2
feb. 23
3726
1
jan. 23
16262