IndexError: list index out of range

Bug #552457 reported by Stephane Wirtel (OpenERP)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
Stephane Wirtel (OpenERP)

Bug Description

just a free entry in your services web link.

-----
Traceback (most recent call last):
  File "/mnt/openerp/server/bin/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/mnt/openerp/server/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/mnt/openerp/server/bin/service/web_services.py", line 635, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/mnt/openerp/server/bin/service/web_services.py", line 615, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/mnt/openerp/server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/mnt/openerp/server/bin/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/mnt/openerp/server/bin/addons/base_setup/wizard/wizard_base_setup.py", line 205, in _update
    (db, pool)=pooler.restart_pool(cr.dbname, update_module=True)
  File "/mnt/openerp/server/bin/pooler.py", line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/mnt/openerp/server/bin/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/mnt/openerp/server/bin/addons/__init__.py", line 740, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/mnt/openerp/server/bin/addons/__init__.py", line 623, in load_module_graph
    tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode)
  File "/mnt/openerp/server/bin/tools/convert.py", line 828, in convert_csv_import
    pool.get(model).import_data(cr, uid, fields, datas,mode, module,noupdate,filename=fname_partial)
  File "/mnt/openerp/server/bin/osv/orm.py", line 842, in import_data
    process_liness(self, datas, [], current_module, self._name, fields_def)
  File "/mnt/openerp/server/bin/osv/orm.py", line 672, in process_liness
    ['res_id'])[0]['res_id']
IndexError: list index out of range

Related branches

Changed in openobject-addons:
milestone: 5.0.9 → 5.0.10
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Kindly provide more and accurate information.
Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Revision:
2034 revid:<email address hidden>

Changed in openobject-addons:
status: Incomplete → Fix Released
assignee: nobody → Stephane (Open ERP) (stephane-openerp)
Revision history for this message
Ken Snyder (ken-k5computing) wrote :
Download full text (5.1 KiB)

I get this same sequence of error. It is a brand new installation (aix5.3, python 2.6.5,openerp5.0.9), and it was trying to install some modules, not sure which one.
I applied the patch, but it only changes the error to:

[2010-04-17 10:22:43,241] INFO:init:module profile_service: loading objects
[2010-04-17 10:22:43,244] INFO:init:module profile_service: creating or updating database tables
[2010-04-17 10:22:43,299] INFO:init:module account: loading security/account_security.xml
[2010-04-17 10:22:43,493] INFO:init:module account: loading security/ir.model.access.csv
bzr: warning: unsupported locale setting
  bzr could not set the application locale.
  Although this should be no problem for bzr itself,
  it might cause problems with some plugins.
  To investigate the issue, look at the output
  of the locale(1p) tool available on POSIX systems.
bzr: ERROR: Not a branch: "/opt/pware64/lib/python2.6/site-packages/openerp-server/".
[2010-04-17 10:22:44,746] ERROR:web-services:[01]:
[2010-04-17 10:22:44,749] ERROR:web-services:[02]: Environment Information :
[2010-04-17 10:22:44,749] ERROR:web-services:[03]: System : AIX-3-0003739F4C00-powerpc-64bit
[2010-04-17 10:22:44,750] ERROR:web-services:[04]: OS Name : posix
[2010-04-17 10:22:44,751] ERROR:web-services:[05]: Your System is not lsb compliant
[2010-04-17 10:22:44,752] ERROR:web-services:[06]: Operating System Release : 3
[2010-04-17 10:22:44,752] ERROR:web-services:[07]: Operating System Version : 5
[2010-04-17 10:22:44,753] ERROR:web-services:[08]: Operating System Architecture : 64bit
[2010-04-17 10:22:44,754] ERROR:web-services:[09]: Operating System Locale : en_US.ISO8859-1
[2010-04-17 10:22:44,755] ERROR:web-services:[10]: Python Version : 2.6.5
[2010-04-17 10:22:44,755] ERROR:web-services:[11]: OpenERP-Server Version : 5.0.9
[2010-04-17 10:22:44,756] ERROR:web-services:[12]: Last revision No. & ID :
[2010-04-17 10:22:44,757] ERROR:web-services:[13]: Exception in call: Traceback (most recent call last):
[2010-04-17 10:22:44,757] ERROR:web-services:[14]: File "/opt/pware64/lib/python2.6/site-packages/openerp-server/wizard/__init__.py", line 73, in execute_cr
[2010-04-17 10:22:44,758] ERROR:web-services:[15]: action_res = action(self, cr, uid, data, context)
[2010-04-17 10:22:44,759] ERROR:web-services:[16]: File "/opt/pware64/lib/python2.6/site-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
[2010-04-17 10:22:44,760] ERROR:web-services:[17]: db, pool = pooler.restart_pool(cr.dbname, update_module=True)
[2010-04-17 10:22:44,760] ERROR:web-services:[18]: File "/opt/pware64/lib/python2.6/site-packages/openerp-server/pooler.py", line 62, in restart_pool
[2010-04-17 10:22:44,761] ERROR:web-services:[19]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[2010-04-17 10:22:44,762] ERROR:web-services:[20]: File "/opt/pware64/lib/python2.6/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
[2010-04-17 10:22:44,762] ERROR:web-services:[21]: addons.load_modules(db, force_demo, status, update_module)
[2010-04-17 10:22:44,763] ERROR:web-services:[22]: File "/opt/pware...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.