Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
7 Răspunsuri
7694 Vizualizări

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.

Imagine profil
Abandonează

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

Cel mai bun răspuns


pip3 instal PyYAML==3.13

Imagine profil
Abandonează
Autor

Mostafa Thanks It is working now.

Cel mai bun răspuns

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

Imagine profil
Abandonează
Cel mai bun răspuns

Thanks Mustofa,

It's working on odoo 11.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
nov. 23
2260
0
apr. 23
2861
1
mar. 23
2247
2
feb. 23
3642
1
ian. 23
16040