#4329: image generation by ReportLab
-----------------------+----------------------------------------------------
Reporter: Umesh | Owner: jacob
Status: new | Component: Uncategorized
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
C:\djproject\trade\stock>mycharts.py > error.txt
Traceback (most recent call last):
File "C:\djproject\trade\stock\mycharts.py", line 116, in ?
c.save(formats=['jpg'],outDir='temp',fnRoot='daychart')
File "C:\Python24\Lib\site-packages\reportlab\graphics\shapes.py", line
689, in save
renderPM.drawToFile(self,
filename,fmt=bmFmt,showBoundary=getattr(self,'show
Border',rl_config.showBoundary),**_extraKW(self,'_renderPM_',**kw))
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderPM.py",
line 591,
in drawToFile
c = drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL,
showBoundary=show
Boundary)
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderPM.py",
line 577,
in drawToPMCanvas
draw(d, c, 0, 0, showBoundary=showBoundary)
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderPM.py",
line 49,
in draw
R.draw(renderScaledDrawing(drawing), canvas, x, y,
showBoundary=showBoundary
)
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderbase.py",
line 20
0, in draw
self.initState(x,y) #this is the push()
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderPM.py",
line 86,
in initState
self.applyState()
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderPM.py",
line 80,
in applyState
self._canvas.setFont(s['fontName'], s['fontSize'])
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderPM.py",
line 358,
in setFont
_setFont(self._gs,fontName,fontSize)
File "C:\Python24\Lib\site-packages\reportlab\graphics\renderPM.py",
line 238,
in _setFont
raise RenderPMError, "Can't setFont(%s) missing the T1
files?\nOriginally %s
: %s" % (fontName,s1,s2)
reportlab.graphics.renderPM.RenderPMError: Can't setFont(Times-Roman)
missing the T1 files?
Originally exceptions.TypeError: makeT1Font() argument 2 must be string,
not None
--
Ticket URL: <http://code.djangoproject.com/ticket/4329>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---