Skip to Content
Menu
This question has been flagged
7 Replies
7917 Rodiniai

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.

Portretas
Atmesti

update the code to the latest commit and then try again

Autorius

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

Portretas
Atmesti
Autorius

Mostafa Thanks It is working now.

Best Answer

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

Portretas
Atmesti
Best Answer

Thanks Mustofa,

It's working on odoo 11.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
lapkr. 23
2453
0
bal. 23
3024
1
kov. 23
2386
2
vas. 23
3806
1
saus. 23
16528