Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
7 Odpovědi
7725 Zobrazení

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
Zrušit

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

Nejlepší odpověď


pip3 instal PyYAML==3.13

Avatar
Zrušit
Autor

Mostafa Thanks It is working now.

Nejlepší odpověď

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

Avatar
Zrušit
Nejlepší odpověď

Thanks Mustofa,

It's working on odoo 11.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
lis 23
2297
0
dub 23
2916
1
bře 23
2256
2
úno 23
3666
1
led 23
16100