[reportlab-users]renderPM 'module'object
hasno attribute 'saveToFile'
george
georgel at telebyte.com
Sat Jul 15 09:42:39 EDT 2006
Thanks, right on target.
george
Robin Becker wrote:
> George wrote:
>
>> I had the same problem
>> I got for pfbfer.zip and installed thepfb files in C:python23/LIB
>> still have the same problem:
>>
>>>>> ================================ RESTART
>>>>> ================================
>>>>>
>> Warn: Can't find .pfb for face 'Times-Roman'
>>
>> Traceback (most recent call last):
>> File "L:\HereAndThere\Stairs\test.py", line 9, in -toplevel-
>> renderPM.drawToFile(drawing, 'example1.gif', 'GIF')
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderPM.py", line
>> 559, in drawToFile
>> c = drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL,
>> showBoundary=showBoundary)
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderPM.py", line
>> 545, in drawToPMCanvas
>> draw(d, c, 0, 0, showBoundary=showBoundary)
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderPM.py", line
>> 49, in draw
>> R.draw(drawing, canvas, x, y, showBoundary=showBoundary)
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderbase.py",
>> line 188, in draw
>> self.initState(x,y)
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderPM.py", line
>> 86, in initState
>> self.applyState()
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderPM.py", line
>> 80, in applyState
>> self._canvas.setFont(s['fontName'], s['fontSize'])
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderPM.py", line
>> 327, in setFont
>> _setFont(self._gs,fontName,fontSize)
>> File
>> "C:\Python23\lib\site-packages\reportlab\graphics\renderPM.py", line
>> 207, in _setFont
>> raise RenderPMError, "Can't setFont(%s) missing the T1
>> files?\nOriginally %s: %s" % (fontName,s1,s2)
>> RenderPMError: Can't setFont(Times-Roman) missing the T1 files?
>> Originally exceptions.TypeError: makeT1Font() argument 2 must be
>> string, not None
>> Should I have put the pfb files somewhere else?
>>
>> george
>
> yes either in reportlab/fonts or in somewhere mentioned on the
> T1SearchPath defined in reportlab/rl_config.py
--
ps. My ISP has been overzealously rejecting incoming mail. If your mail
to me is bounced, please forward the bounceback message to
telebyte.northwest at gmail.com <mailto:telebyte.northwest at gmail.com> so we can look at it and track where the
problem is...
Please do this ASAP... if too much time passes they may not be able to
fix it.
g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20060715/cd0b2480/attachment.html
More information about the reportlab-users
mailing list