← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 712367] Re: exporting translation wrom database with no demodata

 

hello,

the same happens to me when i try to export a translation file from any
module:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/python2.6/site-packages/openerp-server/addons/base/module/wizard/base_export_language.py", line 50, in act_getfile
    tools.trans_export(this.lang, mods, buf, this.format, cr)
  File "/usr/lib/python2.6/site-packages/openerp-server/tools/translate.py", line 464, in trans_export
    trans = trans_generate(lang, modules, cr)
  File "/usr/lib/python2.6/site-packages/openerp-server/tools/translate.py", line 760, in trans_generate
    logger.debug("Scanning modules at paths: ", path_list)
  File "/usr/lib/python2.6/logging/__init__.py", line 1036, in debug
    self._log(DEBUG, msg, args, **kwargs)
  File "/usr/lib/python2.6/logging/__init__.py", line 1165, in _log
    self.handle(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 1175, in handle
    self.callHandlers(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 1212, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 673, in handle
    self.emit(record)
  File "/usr/lib/python2.6/logging/handlers.py", line 771, in emit
    msg = self.format(record)
  File "/usr/lib/python2.6/logging/__init__.py", line 648, in format
    return fmt.format(record)
  File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 176, in format
    return logging.Formatter.format(self, record)
  File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting


please note that this happens when the openerp-server is running as a service. however, if i stop the service and run the server using /usr/bin/openerp-server , i can export a translation successfully whether as a csv or not. i do in that case get quite a few warnings:

[2011-02-10 14:24:06,868][db1] WARNING:i18n:Unable to find object 'res.currency' with id 30
[2011-02-10 14:24:06,869][db1] WARNING:i18n:Unable to find object 'res.currency' with id 11
[2011-02-10 14:24:06,869][db1] WARNING:i18n:Unable to find object 'res.currency' with id 12
[2011-02-10 14:24:06,870][db1] WARNING:i18n:Unable to find object 'res.currency' with id 21
[2011-02-10 14:24:06,870][db1] WARNING:i18n:Unable to find object 'res.currency' with id 26
......

server version 6.0.1, and its the same for both gtk and web client

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

Title:
  exporting translation wrom database with no demodata

Status in OpenERP Server:
  Invalid

Bug description:
  Hello. I tried to export translation of my module to the .po file.
  Database was created with no loading demodata.
  I've got the following traceback:

   File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/lib/python2.6/site-packages/openerp-server/addons/base/module/wizard/base_export_language.py", line 50, in act_getfile
      tools.trans_export(this.lang, mods, buf, this.format, cr)
    File "/usr/lib/python2.6/site-packages/openerp-server/tools/translate.py", line 464, in trans_export
      trans = trans_generate(lang, modules, cr)
    File "/usr/lib/python2.6/site-packages/openerp-server/tools/translate.py", line 760, in trans_generate
      logger.debug("Scanning modules at paths: ", path_list)
    File "/usr/lib64/python2.6/logging/__init__.py", line 1036, in debug
      self._log(DEBUG, msg, args, **kwargs)
    File "/usr/lib64/python2.6/logging/__init__.py", line 1165, in _log
      self.handle(record)
    File "/usr/lib64/python2.6/logging/__init__.py", line 1175, in handle
      self.callHandlers(record)
    File "/usr/lib64/python2.6/logging/__init__.py", line 1212, in callHandlers
      hdlr.handle(record)
    File "/usr/lib64/python2.6/logging/__init__.py", line 673, in handle
      self.emit(record)
    File "/usr/lib64/python2.6/logging/handlers.py", line 771, in emit
      msg = self.format(record)
    File "/usr/lib64/python2.6/logging/__init__.py", line 648, in format
      return fmt.format(record)
    File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 176, in format
      return logging.Formatter.format(self, record)
    File "/usr/lib64/python2.6/logging/__init__.py", line 436, in format
      record.message = record.getMessage()
    File "/usr/lib64/python2.6/logging/__init__.py", line 306, in getMessage
      msg = msg % self.args
  TypeError: not all arguments converted during string formatting





References