can't install label module on 5.0.14

Bug #658419 reported by Manu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Zikzakmedia
OpenERP Spanish Localization Project
Invalid
Undecided
Unassigned

Bug Description

The OS is ubuntu server 10.04.1. I'm using openerp 5.0.14 server and GTK client as downloaded from the www.openerp.com site.

I have downloaded the full openerp branch and copied the label module from addons-extra to the server's addons directory. My current revision of the branch is 4571.

I have a fresh install and when I try to install the label module I got the following error at the server:

[2010-10-11 16:34:57,945][test1] INFO:init:module base: loading objects
[2010-10-11 16:34:58,006][test1] INFO:init:updating modules list
[2010-10-11 16:34:58,010][test1] INFO:init:module base: loading objects
[2010-10-11 16:34:58,070][test1] INFO:init:module base_setup: loading objects
[2010-10-11 16:34:58,070][test1] INFO:init:module label: loading objects
[2010-10-11 16:34:58,070][test1] INFO:init:module label: registering objects
[2010-10-11 16:34:58,240][test1] INFO:init:module label: creating or updating database tables
[2010-10-11 16:34:59,116][test1] INFO:init:module label: no quality certificate
[2010-10-11 16:34:59,116][test1] INFO:init:module label: loading report_label_data.xml
[2010-10-11 16:35:00,157][test1] INFO:init:module label: loading label_data.xml
[2010-10-11 16:35:01,021][test1] ERROR:init:[01]:
[2010-10-11 16:35:01,022][test1] ERROR:init:[02]: Environment Information :
[2010-10-11 16:35:01,022][test1] ERROR:init:[03]: System : Linux-2.6.32-25-generic-pae-i686-with-Ubuntu-10.04-lucid
[2010-10-11 16:35:01,022][test1] ERROR:init:[04]: OS Name : posix
[2010-10-11 16:35:01,022][test1] ERROR:init:[05]: Distributor ID: Ubuntu
[2010-10-11 16:35:01,022][test1] ERROR:init:[06]: Description: Ubuntu 10.04.1 LTS
[2010-10-11 16:35:01,023][test1] ERROR:init:[07]: Release: 10.04
[2010-10-11 16:35:01,023][test1] ERROR:init:[08]: Codename: lucid
[2010-10-11 16:35:01,023][test1] ERROR:init:[09]: Operating System Release : 2.6.32-25-generic-pae
[2010-10-11 16:35:01,023][test1] ERROR:init:[10]: Operating System Version : #44-Ubuntu SMP Fri Sep 17 21:57:48 UTC 2010
[2010-10-11 16:35:01,023][test1] ERROR:init:[11]: Operating System Architecture : 32bit
[2010-10-11 16:35:01,023][test1] ERROR:init:[12]: Operating System Locale : NOT SET
[2010-10-11 16:35:01,024][test1] ERROR:init:[13]: Python Version : 2.6.5
[2010-10-11 16:35:01,024][test1] ERROR:init:[14]: OpenERP-Server Version : 5.0.14
[2010-10-11 16:35:01,024][test1] ERROR:init:[15]: Last revision No. & ID :
[2010-10-11 16:35:01,024][test1] ERROR:init:[16]: <record id="label_templates_partner0" model="label.templates">
[2010-10-11 16:35:01,024][test1] ERROR:init:[17]: <field eval="'Partner'" name="name"/>
[2010-10-11 16:35:01,024][test1] ERROR:init:[18]: <field eval="'res.partner'" name="model_int_name"/>
[2010-10-11 16:35:01,025][test1] ERROR:init:[19]: <field eval="'object.address/o.country_id.name'" name="sort_field1"/>
[2010-10-11 16:35:01,025][test1] ERROR:init:[20]: <field eval="'object.address/o.state_id.name'" name="sort_field2"/>
[2010-10-11 16:35:01,025][test1] ERROR:init:[21]: <field eval="[(6,0,[ref('base.group_partner_manager')])]" name="allowed_groups"/>
[2010-10-11 16:35:01,025][test1] ERROR:init:[22]: <field name="object_name" ref="base.model_res_partner"/>
[2010-10-11 16:35:01,025][test1] ERROR:init:[23]: <field eval="&quot;&quot;&quot;%for o in object.address:\n &lt;blockTable style=&quot;mytable&quot;&gt;\n &lt;tr&gt;&lt;td&gt;\n &lt;b&gt;${object.name or ''}${object.title and ' '+object.title or ''}&lt;/b&gt;\n ${o.title and o.title+' ' or ''}${o.name or ''}\n ${o.street or ''}\n ${o.street2 or ''}\n ${o.zip or ''} ${o.city or ''}\n ${o.state_id.name or ''}\n ${o.country_id.name or ''}\n &lt;/td&gt;&lt;/tr&gt;\n &lt;/blockTable&gt;\n &lt;nextFrame/&gt;\n %endfor&quot;&quot;&quot;" name="def_body_text"/>
[2010-10-11 16:35:01,025][test1] ERROR:init:[24]: <field eval="&quot;&quot;&quot;&lt;blockTableStyle id='mytable'&gt;\n &lt;blockAlignment value='CENTER' /&gt;\n &lt;blockValign value='MIDDLE' /&gt;\n &lt;lineStyle kind='GRID' colorName='black' tickness='1' /&gt;\n &lt;/blockTableStyle&gt;&quot;&quot;&quot;" name="report_stylesheets"/>
[2010-10-11 16:35:01,026][test1] ERROR:init:[25]: <field name="type">xsl</field>
[2010-10-11 16:35:01,026][test1] ERROR:init:[26]: </record>
[2010-10-11 16:35:01,154][test1] ERROR:web-services:[01]:
[2010-10-11 16:35:01,154][test1] ERROR:web-services:[02]: Environment Information :
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[03]: System : Linux-2.6.32-25-generic-pae-i686-with-Ubuntu-10.04-lucid
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[04]: OS Name : posix
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[06]: Description: Ubuntu 10.04.1 LTS
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[07]: Release: 10.04
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[08]: Codename: lucid
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[09]: Operating System Release : 2.6.32-25-generic-pae
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[10]: Operating System Version : #44-Ubuntu SMP Fri Sep 17 21:57:48 UTC 2010
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-10-11 16:35:01,155][test1] ERROR:web-services:[12]: Operating System Locale : NOT SET
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[13]: Python Version : 2.6.5
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.14
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[15]: Last revision No. & ID :
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[16]: Exception in call: Traceback (most recent call last):
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[17]: File "/openerp/openerp-server/wizard/__init__.py", line 73, in execute_cr
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[18]: action_res = action(self, cr, uid, data, context)
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[19]: File "/openerp/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[20]: db, pool = pooler.restart_pool(cr.dbname, update_module=True)
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[21]: File "/openerp/openerp-server/pooler.py", line 62, in restart_pool
[2010-10-11 16:35:01,156][test1] ERROR:web-services:[22]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[23]: File "/openerp/openerp-server/pooler.py", line 40, in get_db_and_pool
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[24]: addons.load_modules(db, force_demo, status, update_module)
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[25]: File "/openerp/openerp-server/addons/__init__.py", line 736, in load_modules
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[26]: r = load_module_graph(cr, graph, status, report=report)
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[27]: File "/openerp/openerp-server/addons/__init__.py", line 626, in load_module_graph
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[28]: tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[29]: File "/openerp/openerp-server/tools/convert.py", line 877, in convert_xml_import
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[30]: obj.parse(doc.getroot())
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[31]: File "/openerp/openerp-server/tools/convert.py", line 774, in parse
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[32]: self._tags[rec.tag](self.cr, rec, n)
[2010-10-11 16:35:01,157][test1] ERROR:web-services:[33]: File "/openerp/openerp-server/tools/convert.py", line 746, in _tag_record
[2010-10-11 16:35:01,158][test1] ERROR:web-services:[34]: id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode )
[2010-10-11 16:35:01,158][test1] ERROR:web-services:[35]: File "/openerp/openerp-server/addons/base/ir/ir_model.py", line 515, in _update
[2010-10-11 16:35:01,158][test1] ERROR:web-services:[36]: res_id = model_obj.create(cr, uid, values, context=context)
[2010-10-11 16:35:01,158][test1] ERROR:web-services:[37]: File "/openerp/openerp-server/addons/label/label.py", line 332, in create
[2010-10-11 16:35:01,158][test1] ERROR:web-services:[38]: 'view_id': self.pool.get('ir.ui.view').search(cr, uid, [('name', '=', 'label.wizard.form')], context=context)[0],
[2010-10-11 16:35:01,158][test1] ERROR:web-services:[39]: IndexError: list index out of range
[2010-10-11 16:35:01,586][test1] INFO:init:module base: loading objects
[2010-10-11 16:35:01,668][test1] INFO:init:module base: loading objects
[2010-10-11 16:35:01,729][test1] INFO:init:module base_setup: loading objects

and this one at the client:

ERROR:common.message:Message list index out of range:
Environment Information :
System : Linux-2.6.32-25-generic-pae-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-25-generic-pae
Operating System Version : #44-Ubuntu SMP Fri Sep 17 21:57:48 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : es_ES.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.14
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/openerp/openerp-server/netsvc.py", line 256, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/openerp/openerp-server/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/openerp/openerp-server/service/web_services.py", line 633, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/openerp/openerp-server/service/web_services.py", line 613, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/openerp/openerp-server/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/openerp/openerp-server/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/openerp/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/openerp/openerp-server/pooler.py", line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/openerp/openerp-server/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/openerp/openerp-server/addons/__init__.py", line 736, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/openerp/openerp-server/addons/__init__.py", line 626, in load_module_graph
    tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
  File "/openerp/openerp-server/tools/convert.py", line 877, in convert_xml_import
    obj.parse(doc.getroot())
  File "/openerp/openerp-server/tools/convert.py", line 774, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/openerp/openerp-server/tools/convert.py", line 746, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode )
  File "/openerp/openerp-server/addons/base/ir/ir_model.py", line 515, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/openerp/openerp-server/addons/label/label.py", line 332, in create
    'view_id': self.pool.get('ir.ui.view').search(cr, uid, [('name', '=', 'label.wizard.form')], context=context)[0],
IndexError: list index out of range

Thank your very much for any help to resolve this issue.

Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
assignee: nobody → Zikzakmedia (zikzak)
Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Confirmed: It is not possible to install some of the Spanish localization main modules (l10n_ES_pyme_install) due to this problem.

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Fixed on 5.0 extra-addons revno 4574 revid <email address hidden> (http://bazaar.launchpad.net/~openerp-commiter/openobject-addons/stable_5.0-extra-addons/revision/4574)

Note: Not fixed on 6.0 (not needed) as the trunk-extra-addons module is not up-to-date. Maybe Zikzakmedia should put it in sync with 5.0 label module.

Thanks for the report :)

Revision history for this message
Ignacio Ibeas (www.acysos.com) (ignacio-acysos) wrote :
Download full text (3.5 KiB)

I get another error with label. It's not the same error. Perhaps, there are connected.
I solved it adding "import report_label" in the line 51 of label.py

Environment Information :
System : Linux-2.6.27.48-0.3-default-x86_64-with-SuSE-11.1-x86_64
OS Name : posix
LSB Version: core-2.0-noarch:core-3.2-noarch:core-2.0-x86_64:core-3.2-x86_64:desktop-3.2-amd64:desktop-3.2-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 11.1 (x86_64)
Release: 11.1
Codename: n/a
Operating System Release : 2.6.27.48-0.3-default
Operating System Version : #1 SMP 2010-09-20 11:03:26 -0400
Operating System Architecture : 64bit
Operating System Locale : es_ES.UTF8
Python Version : 2.5.4
OpenERP-Client Version : 5.0.14
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/netsvc.py", line 256, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/service/web_services.py", line 633, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/service/web_services.py", line 613, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/pooler.py", line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/addons/__init__.py", line 736, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/addons/__init__.py", line 579, in load_module_graph
    init_module_objects(cr, package.name, modules)
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/addons/__init__.py", line 362, in init_module_objects
    result = obj._auto_init(cr, {'module': module_name})
  File "/media/TOUGHDRIVE/Proyectos/erp/Demo/openerp-server-5.0.14/bin/osv/orm.py", line 1865, in _auto_init
    cr.execute('ALTER TABLE "%s" ADD FOREIGN KEY ("%s") REFERENCES "%s" ON DE...

Read more...

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Ignacio, it is better to create a new bug report for that one (assign it to Zikzakmedia), so it can be tracked properly.

Changed in openobject-addons:
status: Confirmed → Fix Released
Changed in openerp-spain:
status: New → Invalid
Revision history for this message
Manu (manu-tiedra) wrote :

Thank you very much Borja. Your fix did it!

Revision history for this message
Manu (manu-tiedra) wrote :

Ignacio, I think you are talking about this bug that has already been fixed:

https://bugs.launchpad.net/openobject-addons/+bug/632545

Revision history for this message
Jordi Esteve (www.zikzakmedia.com) (jesteve-zikzakmedia) wrote :

Thanks Borja for the fix.

And the second bug that Ignacio has reported, Manu is right: It has been fixed some days ago. So update your modules with the last versions in addons-extra branch and try again.

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.