← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 779475] [NEW] [6.1 trunk]:[l10n_ch]: loading test/l10n_ch_report.yml fails

 

Public bug reported:

hi there,

while installing a NEW db with latest revs, i get this traceback:

[2011-05-08 14:42:59,267][bs_test_minimal] INFO:init:module l10n_ch: loading test/l10n_ch_report.yml
[2011-05-08 14:42:59,285][bs_test_minimal] ERROR:test:Tests failed to execute in module l10n_ch
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/addons/__init__.py", line 680, in load_test
    _load_data(cr, module_name, id_map, mode, 'test')
  File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/addons/__init__.py", line 703, in _load_data
    tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
  File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/tools/yaml_import.py", line 794, in yaml_import
    yaml_interpreter.process(yaml_string)
  File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/tools/yaml_import.py", line 726, in process
    for node in yaml.load(yaml_string):
  File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 58, in load
    return loader.get_single_data()
  File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 42, in get_single_data
    node = self.get_single_node()
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
    document = self.compose_document()
  File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 58, in compose_document
    self.get_event()
  File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 113, in get_event
    self.current_event = self.state()
  File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 188, in parse_document_end
    token = self.peek_token()
  File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 128, in peek_token
    self.fetch_more_tokens()
  File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 220, in fetch_more_tokens
    return self.fetch_value()
  File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 580, in fetch_value
    self.get_mark())
ScannerError: mapping values are not allowed here
  in "<string>", line 7, column 17:
      !record {model: res.partner.category, id: res_ ... 
                    ^

thank you,
bogdan

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/779475

Title:
  [6.1 trunk]:[l10n_ch]: loading test/l10n_ch_report.yml fails

Status in OpenERP Modules (addons):
  New

Bug description:
  hi there,

  while installing a NEW db with latest revs, i get this traceback:

  [2011-05-08 14:42:59,267][bs_test_minimal] INFO:init:module l10n_ch: loading test/l10n_ch_report.yml
  [2011-05-08 14:42:59,285][bs_test_minimal] ERROR:test:Tests failed to execute in module l10n_ch
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/addons/__init__.py", line 680, in load_test
      _load_data(cr, module_name, id_map, mode, 'test')
    File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/addons/__init__.py", line 703, in _load_data
      tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
    File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/tools/yaml_import.py", line 794, in yaml_import
      yaml_interpreter.process(yaml_string)
    File "/usr/local/lib/python2.7/dist-packages/openerp_server-6.1_dev-py2.7.egg/openerp/tools/yaml_import.py", line 726, in process
      for node in yaml.load(yaml_string):
    File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 58, in load
      return loader.get_single_data()
    File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 42, in get_single_data
      node = self.get_single_node()
    File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
      document = self.compose_document()
    File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 58, in compose_document
      self.get_event()
    File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 113, in get_event
      self.current_event = self.state()
    File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 188, in parse_document_end
      token = self.peek_token()
    File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 128, in peek_token
      self.fetch_more_tokens()
    File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 220, in fetch_more_tokens
      return self.fetch_value()
    File "/usr/lib/python2.7/dist-packages/yaml/scanner.py", line 580, in fetch_value
      self.get_mark())
  ScannerError: mapping values are not allowed here
    in "<string>", line 7, column 17:
        !record {model: res.partner.category, id: res_ ... 
                      ^

  thank you,
  bogdan


Follow ups

References