← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 707369] [NEW] [6.0]Font name error when installing Chinese chart of account

 

I was probably still on trunk version (didnot update my pointers). Will
re-setup today everything!
Thanks

-- 
Eric

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

Title:
  [6.0]Font name error when installing Chinese chart of account

Status in OpenERP Modules (addons):
  New

Bug description:
  In Linux Ubuntu 10.10, with the server setup from bazar (rev 3321/4377).
  In the initial setup wizard, I try to install the default proposed chart of account (中国会计科目表) and I get the following error

  
  Environment Information : 
  System : Linux-2.6.35-24-generic-i686-with-Ubuntu-10.10-maverick
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 10.10
  Release:	10.10
  Codename:	maverick
  Operating System Release : 2.6.35-24-generic
  Operating System Version : #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010
  Operating System Architecture : 32bit
  Operating System Locale : fr_FR.UTF8
  Python Version : 2.6.6
  OpenERP-Client Version : 6.0.1
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/netsvc.py", line 489, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/service/web_services.py", line 599, in dispatch
      res = fn(db, uid, *params)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/base/res/res_config.py", line 167, in action_next
      next = self.execute(cr, uid, ids, context=None)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/account/installer.py", line 571, in execute
      super(account_installer, self).execute(cr, uid, ids, context=context)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/base/res/res_config.py", line 397, in execute
      new_db, self.pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/pooler.py", line 60, in restart_pool
      return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/pooler.py", line 39, in get_db_and_pool
      addons.load_modules(db, force_demo, status, update_module)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/__init__.py", line 883, in load_modules
      processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/__init__.py", line 716, in load_module_graph
      register_class(package.name)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/__init__.py", line 450, in register_class
      imp.load_module(m, *fm)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/l10n_cn/__init__.py", line 22, in <module>
      import base_cn
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/l10n_cn/base_cn/__init__.py", line 21, in <module>
      import pdf_cn
    File "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/l10n_cn/base_cn/pdf_cn.py", line 38, in <module>
      registerFont(TTFont(font, fntp))
    File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/ttfonts.py", line 1006, in __init__
      self.face = TTFontFace(filename, validate=validate, subfontIndex=subfontIndex)
    File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/ttfonts.py", line 915, in __init__
      TTFontFile.__init__(self, filename, validate=validate, subfontIndex=subfontIndex)
    File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/ttfonts.py", line 412, in __init__
      TTFontParser.__init__(self, file, validate=validate,subfontIndex=subfontIndex)
    File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/ttfonts.py", line 189, in __init__
      self.readFile(file)
    File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/ttfonts.py", line 263, in readFile
      self.filename, f = TTFOpenFile(f)
    File "/usr/lib/python2.6/dist-packages/reportlab/pdfbase/ttfonts.py", line 175, in TTFOpenFile
      raise TTFError('Can\'t open file "%s"' % fn)
  TTFError: Can't open file "/usr/local/lib/python2.6/dist-packages/openerp-server_9920/addons/l10n_cn/fonts/S.ttf"

  In the mentioned directory, I have the Simsun.ttf file





References