Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
7 Odpowiedzi
7693 Widoki

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.

Awatar
Odrzuć

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

Najlepsza odpowiedź


pip3 instal PyYAML==3.13

Awatar
Odrzuć
Autor

Mostafa Thanks It is working now.

Najlepsza odpowiedź

as mustafa said, For Odoo 10 :

pip install pyyaml==3.13

Awatar
Odrzuć
Najlepsza odpowiedź

Thanks Mustofa,

It's working on odoo 11.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lis 23
2256
0
kwi 23
2858
1
mar 23
2243
2
lut 23
3640
1
sty 23
16034