← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 707870] Re: v6 ImportError: cannot import name test_reports

 

*** This bug is a duplicate of bug 703841 ***
    https://bugs.launchpad.net/bugs/703841

Hi Azazahmed, 
It' not a duplicate bug of 703841,  bug 703841 has been opened by me also, in this 703841 bug report the error is "importerror time"".
in this bug 707870, the error is ImportError: cannot import name test_reports", even if I speak about the importerror time that I thank to be the same error, but not.
thanks to verify solution I gave by add  "....." in the files .yml with "from tools import test_reports" and command which follow this line at each time.
bye

-- 
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/707870

Title:
  v6 ImportError: cannot import name test_reports

Status in OpenERP Server:
  New

Bug description:
  hi,
  windows vista 
  v6
  server rev : 3320
  addons rev : 4354

  when I create a database using configurator, checking all applications, in server's log I have this error :
  ImportError: cannot import name test_reports

  [2011-01-26 09:43:02,822][admin] INFO:init:module product: loading product_demo.xml
  [2011-01-26 09:43:13,479][admin] INFO:init:module product: loading test/product_report.yml
  [2011-01-26 09:43:13,509][admin] ERROR:tests.product:cannot import name test_reports
  Traceback (most recent call last):
    File "tools\yaml_import.pyo", line 729, in process
    File "tools\yaml_import.pyo", line 744, in _process_node
    File "tools\yaml_import.pyo", line 414, in process_python
    File "C:\Program Files\OpenERP 6.0\Server\addons\product\test\product_report.yml", line 9, in <module>
  ImportError: cannot import name test_reports
  [2011-01-26 09:43:13,509][admin] ERROR:test:Tests failed to execute in module product
  Traceback (most recent call last):
    File "addons\__init__.pyo", line 670, in load_test
    File "addons\__init__.pyo", line 693, in _load_data
    File "tools\yaml_import.pyo", line 794, in yaml_import
    File "tools\yaml_import.pyo", line 729, in process
    File "tools\yaml_import.pyo", line 744, in _process_node
    File "tools\yaml_import.pyo", line 414, in process_python
    File "C:\Program Files\OpenERP 6.0\Server\addons\product\test\product_report.yml", line 9, in <module>
  ImportError: cannot import name test_reports

  if I had in server/bin/tools/safe_eval/__init__.py 
  import test_reports
  the error disappear

  bye





References