← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

I done a search for "from tools import test_reports" in all addons, see the result list :
D:\openerp\6.0\server\bin\addons\account\test\account_report.yml (19 hits)
	Line 38:     from tools import test_reports
	Line 47:     from tools import test_reports
	Line 56:     from tools import test_reports
	Line 65:     from tools import test_reports
	Line 76:     from tools import test_reports
	Line 87:     from tools import test_reports
	Line 96:     from tools import test_reports
	Line 105:     from tools import test_reports
	Line 115:     from tools import test_reports
	Line 124:     from tools import test_reports
	Line 133:     from tools import test_reports
	Line 142:     from tools import test_reports
	Line 151:     from tools import test_reports
	Line 160:     from tools import test_reports
	Line 169:     from tools import test_reports
	Line 179:     from tools import test_reports
	Line 189:     from tools import test_reports
	Line 199:     from tools import test_reports
	Line 209:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\account_budget\test\account_budget_report.yml (3 hits)
	Line 9:     from tools import test_reports
	Line 20:     from tools import test_reports
	Line 31:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\account_invoice_layout\test\account_invoice_layout_report.yml (1 hits)
	Line 30:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\hr_attendance\test\hr_attendance_report.yml (2 hits)
	Line 9:     from tools import test_reports
	Line 19:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\hr_holidays\test\hr_holidays_report.yml (2 hits)
	Line 9:     from tools import test_reports
	Line 20:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\hr_payroll\test\hr_payroll_report.yml (2 hits)
	Line 27:     from tools import test_reports
	Line 38:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\hr_timesheet\test\hr_timesheet_report.yml (2 hits)
	Line 9:     from tools import test_reports
	Line 20:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\hr_timesheet_invoice\test\hr_timesheet_invoice_report.yml (1 hits)
	Line 19:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\mrp\test\mrp_report.yml (2 hits)
	Line 26:     from tools import test_reports
	Line 36:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\point_of_sale\test\point_of_sale_report.yml (2 hits)
	Line 63:     from tools import test_reports
	Line 74:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\product\test\product_report.yml (1 hits)
	Line 13:     from tools import test_reports
  D:\openerp\6.0\server\bin\addons\survey\test\survey_report.yml (3 hits)
	Line 8:     from tools import test_reports
	Line 18:     from tools import test_reports
	Line 28:     from tools import test_reports

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