This question has been flagged
3 Replies
2052 Views

i've just installed odoo 10 on windows.When i tried to install manufacturing  app so  i got an odoo server error.

what should i do please ?     


Traceback (most recent call last):
  File "C:\Users\p\eclipse-odoo\odoo\odoo\http.py", line 642, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\http.py", line 684, in dispatch
    result = self._call_function(**self.params)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\http.py", line 334, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\service\model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\http.py", line 327, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\http.py", line 942, in __call__
    return self.method(*args, **kw)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\http.py", line 507, in response_wrap
    response = f(*args, **kw)
  File "C:\Users\p\eclipse-odoo\odoo\addons\web\controllers\main.py", line 899, in call_button
    action = self._call_kw(model, method, args, {})
  File "C:\Users\p\eclipse-odoo\odoo\addons\web\controllers\main.py", line 887, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\addons\base\module\module.py", line 413, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\addons\base\module\module.py", line 495, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\modules\registry.py", line 83, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\modules\loading.py", line 377, in load_modules
    loaded_modules, update_module, models_to_check)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\modules\loading.py", line 270, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "C:\Users\p\eclipse-odoo\odoo\odoo\modules\loading.py", line 182, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='data')
  File "C:\Users\p\eclipse-odoo\odoo\odoo\modules\loading.py", line 96, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\tools\convert.py", line 844, in convert_file
    convert_yaml_import(cr, module, fp, kind, idref, mode, noupdate, report)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\tools\yaml_import.py", line 944, in yaml_import
    yaml_interpreter.process(yaml_string)
  File "C:\Users\p\eclipse-odoo\odoo\odoo\tools\yaml_import.py", line 877, in process
    for node in yaml.load(yaml_string):
  File "C:\Python27\lib\site-packages\yaml\__init__.py", line 114, in load
    return loader.get_single_data()
  File "C:\Python27\lib\site-packages\yaml\constructor.py", line 45, in get_single_data
    return self.construct_document(node)
  File "C:\Python27\lib\site-packages\yaml\constructor.py", line 54, in construct_document
    for dummy in generator:
  File "C:\Python27\lib\site-packages\yaml\constructor.py", line 404, in construct_yaml_map
    value = self.construct_mapping(node)
  File "C:\Python27\lib\site-packages\yaml\constructor.py", line 214, in construct_mapping
    return BaseConstructor.construct_mapping(self, node, deep=deep)
  File "C:\Python27\lib\site-packages\yaml\constructor.py", line 133, in construct_mapping
    key = self.construct_object(key_node, deep=deep)
  File "C:\Python27\lib\site-packages\yaml\constructor.py", line 94, in construct_object
    data = constructor(self, node)
  File "C:\Python27\lib\site-packages\yaml\constructor.py", line 420, in construct_undefined
    node.start_mark)
ConstructorError: could not determine a constructor for the tag '!python'
  in "<string>", line 2, column 3:
      !python {model: res.partner, id: ... 
      ^
Avatar
Discard

AS per Odoo10 requirement, you have to install pyYAML =3.12

https://github.com/odoo/odoo/blob/10.0/requirements.txt

Best Answer

You need to remove PyYAML current version and install version 3.13

Avatar
Discard
Best Answer

Hi,

Check and Update the pyyaml version, use the version less than 4.

Try: pip3 instal PyYAML==3.13

Thanks

Avatar
Discard