ImportError: No module named yaml

Asked by julien M.

Hello,
I tried the latest version of the server this morning and I have this error :

Traceback (most recent call last):
  File "./openerp/5.2/openobject-server/bin/openerp-server.py", line 54, in <module>
    import netsvc
  File "/home/julien/openerp/5.2/openobject-server/bin/netsvc.py", line 273, in <module>
    import tools
  File "/home/julien/openerp/5.2/openobject-server/bin/tools/__init__.py", line 26, in <module>
    from convert import *
  File "/home/julien/openerp/5.2/openobject-server/bin/tools/convert.py", line 40, in <module>
    from yaml_import import convert_yaml_import
  File "/home/julien/openerp/5.2/openobject-server/bin/tools/yaml_import.py", line 10, in <module>
    import yaml_tag
  File "/home/julien/openerp/5.2/openobject-server/bin/tools/yaml_tag.py", line 1, in <module>
    import yaml
ImportError: No module named yaml

Is it normal ?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Vincent Renaville@camptocamp
Solved:
Last query:
Last reply:
Revision history for this message
Best Vincent Renaville@camptocamp (vrenaville-c2c) said :
#1

Hello,

yaml library for python seems to not be installed on your system.

On debian system just do a :

apt-get install python-yaml

Kind regards,

Vincent

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#2

Hello julien M. ,

You need to install PyYAML-3.09 package.

Thanks.

Revision history for this message
julien M. (sanguinator-x) said :
#3

Ok, thank you very much, it works !

Revision history for this message
julien M. (sanguinator-x) said :
#4

Thanks Vincent Renaville@camptocamp, that solved my question.