[reportlab-users] graph error

Timothy Smith timothy at open-networks.net
Mon Apr 11 19:44:40 EDT 2005


sorry but i'm totally stumped. i'm only giving .drawToFile 2 args and 
it's bitching about 3. i must be missing something.
is it actually drawToFile() thats the problem or should i look else where?


 File "/usr/home/timothy/Projects/PubWare/python/YearlyGraphPDF.py", 
line 112, in MakeReport
    renderPDF.drawToFile(ChartDrawing, 'tmp.pdf')
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/renderPDF.py", 
line 278, in drawToFile
    draw(d, c, 0, 0, showBoundary=showBoundary)
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/renderPDF.py", 
line 25, in draw
    R.draw(drawing, canvas, x, y, showBoundary=showBoundary)
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/renderPDF.py", 
line 54, in draw
    self.drawNode(drawing)
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/renderPDF.py", 
line 75, in drawNode
    self.drawNodeDispatcher(node)
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/renderbase.py", 
line 217, in drawNodeDispatcher
    self.drawGroup(node)
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/renderbase.py", 
line 234, in drawGroup
    node = _expandUserNode(node,canvas)
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/renderbase.py", 
line 155, in _expandUserNode
    node = node.provideNode()
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/widgetbase.py", 
line 147, in provideNode
    return self.draw()
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/charts/linecharts.py", 
line 323, in draw
    self.calcPositions()
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/charts/linecharts.py", 
line 195, in calcPositions
    height = self.valueAxis.scale(datum) - y
  File 
"/usr/local/lib/python2.3/site-packages/reportlab/graphics/charts/axes.py", 
line 1180, in scale
    return self._y + self._scaleFactor * (value - self._valueMin)
  File "/usr/local/lib/python2.3/site-packages/pyPgSQL/PgSQL.py", line 
1598, in __rmul__
    return self.__mul__(self, other)
TypeError: __mul__() takes exactly 2 arguments (3 given)



More information about the reportlab-users mailing list