problem during export translation

Bug #1202638 reported by Nicola Riolini - Micronaet
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Incomplete
Undecided
Unassigned

Bug Description

Hello I have again this error after updating today openerp, web, addons.
The problem is during export translation in PO file for one module:

2013-07-18 10:43:39,232 2091 ERROR test openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/thebrush/lp7/openerp/openerp/addons/base/module/wizard/base_export_language.py", line 65, in act_getfile
    tools.trans_export(lang, mods, buf, this.format, cr)
  File "/home/thebrush/lp7/openerp/openerp/tools/translate.py", line 498, in trans_export
    _process(format, modules, translations, buffer, lang)
  File "/home/thebrush/lp7/openerp/openerp/tools/translate.py", line 453, in _process
    for module, type, name, res_id, src, trad, comments in rows:
ValueError: need more than 6 values to unpack
2013-07-18 10:43:39,245 2091 ERROR test openerp.netsvc: need more than 6 values to unpack
Traceback (most recent call last):
  File "/home/thebrush/lp7/openerp/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/thebrush/lp7/openerp/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/thebrush/lp7/openerp/openerp/addons/base/module/wizard/base_export_language.py", line 65, in act_getfile
    tools.trans_export(lang, mods, buf, this.format, cr)
  File "/home/thebrush/lp7/openerp/openerp/tools/translate.py", line 498, in trans_export
    _process(format, modules, translations, buffer, lang)
  File "/home/thebrush/lp7/openerp/openerp/tools/translate.py", line 453, in _process
    for module, type, name, res_id, src, trad, comments in rows:
ValueError: need more than 6 values to unpack

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Nicola,

Currently, with latest code I am not facing any issue. Would you please check it again, and lp:1122895 had same issue. Its a same bug. So, have installed any other extra-addons module ? So, provide me more information about your problem.

Thanks & waiting for your answer.

Changed in openobject-server:
status: New → Incomplete
Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) wrote :

Hi Christian, thanks for reply,
It's my own module, I try a debug on this problem:

This is the focus line where error is raised:
453 -> for module, type, name, res_id, src, trad, comments in rows:

rows for me contains this elements (see 0 and 1):
(Pdb) rows[0]
['module', 'type', 'name', 'res_id', 'src', 'value']

(Pdb) rows[1]
['production_line', 'view', 'mrp.production', 0, '1', '1']

Seems that "comment" field cannot be unpacked so the error... (the for loop has 7 variables, my module in rows has a list of only 6)
So the question: why comment is not present?

Hope this help to the solution of this post.
Thanks again

Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) wrote :

I'm still on my problems see the post you linked, if I find soution I close this issue

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Nicola,

This bug is related to the parser overridden in aeroo reports!

This has been fixed in https://code.launchpad.net/~kndati/aeroo/openerp7 . Get an updated code, you will see it resolved.

Thanks.

Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) wrote :

My problems is that I was using, for a problem with original aeroo, a version of anybox...
Thanks for help, now a re-try with lp:aeroo...

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.