中文pdf报表设置后,启动tiny出现以下错误
-
按照wiki中的[ www.shine-it.net/wiki/index.php?title=Tiny_ERP_%E4%B8%AD%E6%96%87pdf%E6%8A%A5%E8%A1%A8%E8%AE%BE%E7%BD%AE ]中文pdf报表设置后,启动tiny出现以下错误,请教是哪里出现了问题?
Traceback (most recent call last):
File "./tinyerp-server.py", line 163, in <module>
import osv, workflow, report, service
File "/usr/local/lib/python2.5/site-packages/tinyerp-server/report/init.py", line 29, in <module>
import interface
File "/usr/local/lib/python2.5/site-packages/tinyerp-server/report/interface.py", line 41, in <module>
import render
File "/usr/local/lib/python2.5/site-packages/tinyerp-server/report/render/init.py", line 30, in <module>
from rml import rml, rml2html
File "/usr/local/lib/python2.5/site-packages/tinyerp-server/report/render/rml.py", line 30, in <module>
import rml2pdf
File "/usr/local/lib/python2.5/site-packages/tinyerp-server/report/render/rml2pdf/init.py", line 52, in <module>
pdfmetrics.registerFont(TTFont('Arial Unicode MS','arialuni.ttf'))
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 989, in init
self.face = TTFontFace(filename, validate=validate, subfontIndex=subfontIndex)
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 898, in init
TTFontFile.init(self, filename, validate=validate, subfontIndex=subfontIndex)
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 412, in init
self.extractInfo(charInfo)
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 555, in extractInfo
self.seek_table("post")
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 306, in seek_table
self._pos = self.get_table_pos(tag)[0] + offset_in_table
File "/usr/local/lib/python2.5/site-packages/reportlab/pdfbase/ttfonts.py", line 291, in get_table_pos
offset = self.table[tag]['offset']
KeyError: 'post'