[oecn_base_fonts]AttributeError: 'unicode' object has no attribute 'read'

Bug #1248015 reported by Joshua Jan(SHINEIT)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-china
New
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20131103_002534-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 1027, in parseNode
    SetCustomFonts(r)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20131103_002534-py2.6.egg/openerp/report/render/rml2pdf/customfonts.py", line 160, in SetCustomFonts
    rmldoc.setTTFontMapping(name, font, filename, mode)
  File "/usr/lib/python2.6/site-packages/openerp-7.0_20131103_002534-py2.6.egg/openerp/report/render/rml2pdf/trml2pdf.py", line 304, in setTTFontMapping
    pdfmetrics.registerFont(TTFont(fontname, filename))
  File "/usr/lib/python2.6/site-packages/reportlab/pdfbase/ttfonts.py", line 993, in __init__
    self.face = TTFontFace(filename, validate=validate, subfontIndex=subfontIndex)
  File "/usr/lib/python2.6/site-packages/reportlab/pdfbase/ttfonts.py", line 902, in __init__
    TTFontFile.__init__(self, filename, validate=validate, subfontIndex=subfontIndex)
  File "/usr/lib/python2.6/site-packages/reportlab/pdfbase/ttfonts.py", line 410, in __init__
    TTFontParser.__init__(self, file, validate=validate,subfontIndex=subfontIndex)
  File "/usr/lib/python2.6/site-packages/reportlab/pdfbase/ttfonts.py", line 191, in __init__
    self.readFile(file)
  File "/usr/lib/python2.6/site-packages/reportlab/pdfbase/ttfonts.py", line 267, in readFile
    self._ttf_data = file.read()
AttributeError: 'unicode' object has no attribute 'read'

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.