Friday, April 23, 2010

OpenERP - running the Trunk - YAML dependency missing

So I got the  latest tunk from Bazaar

First run :

chanon@batman:~/openerp-TRUNK/openerp/server/bin$ ./openerp-server.py
Traceback (most recent call last):
  File "./openerp-server.py", line 54, in
    import netsvc
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/netsvc.py", line 273, in
    import tools
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/tools/__init__.py", line 26, in
    from convert import *
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/tools/convert.py", line 40, in
    from yaml_import import convert_yaml_import
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/tools/yaml_import.py", line 10, in
    import yaml_tag
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/tools/yaml_tag.py", line 1, in
    import yaml
ImportError: No module named yaml



Solution : http://pyyaml.org/wiki/PyYAML (find the PyYAML package you need, run the sudo python setup.py install command).

Second

[2010-04-23 13:10:34,751] INFO:objects:initialising distributed objects services
Traceback (most recent call last):
  File "./openerp-server.py", line 91, in
    import report
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/report/__init__.py", line 22, in
    import interface
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/report/interface.py", line 32, in
    import render
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/report/render/__init__.py", line 23, in
    from rml import rml, rml2html, rml2txt, odt2odt , html2html, makohtml2html
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/report/render/rml.py", line 28, in
    import makohtml2html as makohtml
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/report/render/makohtml2html/__init__.py", line 22, in
    from makohtml2html import parseNode
  File "/home/chanon/openerp-TRUNK/openerp/server/bin/report/render/makohtml2html/makohtml2html.py", line 21, in
    import mako
ImportError: No module named mako


So one more Template engine for today, solution :
easy_install Mako


And that's it. More about 6.0 later...

No comments: