Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#4329 closed (invalid)

image generation by ReportLab

Reported by: Umesh Owned by: Jacob
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


C:\djproject\trade\stock> > error.txt
Traceback (most recent call last):

File "C:\djproject\trade\stock\", line 116, in ?,outDir='temp',fnRoot='daychart')

File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 689, in save

renderPM.drawToFile(self, filename,fmt=bmFmt,showBoundary=getattr(self,'show


File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 591,

in drawToFile

c = drawToPMCanvas(d, dpi=dpi, bg=bg, configPIL=configPIL, showBoundary=show


File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 577,

in drawToPMCanvas

draw(d, c, 0, 0, showBoundary=showBoundary)

File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 49,

in draw

R.draw(renderScaledDrawing(drawing), canvas, x, y, showBoundary=showBoundary


File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 20

0, in draw

self.initState(x,y) #this is the push()

File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 86,

in initState


File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 80,

in applyState

self._canvas.setFont(sfontName?, sfontSize?)

File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 358,

in setFont


File "C:\Python24\Lib\site-packages\reportlab\graphics\", line 238,

in _setFont

raise RenderPMError, "Can't setFont(%s) missing the T1 files?\nOriginally %s

: %s" % (fontName,s1,s2) Can't setFont(Times-Roman) missing the T1 files?
Originally exceptions.TypeError: makeT1Font() argument 2 must be string, not None

Change History (2)

comment:1 Changed 11 years ago by Chris Beaven

Resolution: invalid
Status: newclosed

Doesn't seem like a Django bug to me.

comment:2 Changed 9 years ago by Philippe Raoult

I've had a very similar bug with reportlab, and it was caused by having multiple interpreters instances in apache with mod_python. I've only found 2 ways of solving the problem: using a single interpreter per apache instance, or reducing the requests per child to 1 (which is suboptimal, performance-wise).

Hope that helps...

Note: See TracTickets for help on using tickets.
Back to Top