[reportlab-users] graphics/charts/axes.py TypeError: _makeLines() takes at most 8 arguments (10 given)
    M Hubenthal 
    mhubenth at sophistry.com
       
    Fri Aug 17 11:07:50 EDT 2012
    
    
  
  Hi,
I am not much of a python programmer and am hoping someone can point me 
in the correct direction.  I found nothing in searching the archives.
I am in the process of upgrading the operating environment for an 
application that has been using reportlab 2.0 for six years.  On a fresh 
install with 2.5, I received a traceback similar to the one below.  
Going back to current development environment, I stepped through the 
reportlab versions and found that things break down in 2.4.  In 
comparing the two versions,  it is clear _makeLines was expanded, but 
why does python think it only takes up to 8 arguments and it there 
something I can do to move forward?
2.3
__version__=''' $Id: axes.py 3345 2008-12-12 17:55:22Z damian $ '''
__doc__="""Collection of axes for charts.
     def 
_makeLines(self,g,start,end,strokeColor,strokeWidth,strokeDashArray,parent=None):
                 
self._makeLines(g,tU,-tD,self.strokeColor,sW,self.strokeDashArray)
2.4
__version__=''' $Id: axes.py 3609 2009-12-07 17:58:49Z meitham $ '''
__doc__="""Collection of axes for charts.
     def 
_makeLines(self,g,start,end,strokeColor,strokeWidth,strokeDashArray,strokeLineJoin,strokeLineCap,strokeMiterLimit,parent=None):
             
self._makeLines(g,tU,-tD,self.strokeColor,sW,self.strokeDashArray,self.strokeLineJoin,self.strokeLineCap,self.strokeMiterLimit)
Traceback (most recent call last):
   File "<stdin>", line 65, in ?
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/renderPDF.py", line 
29, in draw
     R.draw(renderScaledDrawing(drawing), canvas, x, y, 
showBoundary=showBoundary)
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/renderbase.py", 
line 198, in draw
     self.drawNode(drawing)
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/renderPDF.py", line 
55, in drawNode
     self.drawNodeDispatcher(node)
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/renderbase.py", 
line 276, in drawNodeDispatcher
     self.drawGroup(node)
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/renderbase.py", 
line 293, in drawGroup
     node = _expandUserNode(node,canvas)
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/renderbase.py", 
line 160, in _expandUserNode
     node = node.provideNode()
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/widgetbase.py", 
line 152, in provideNode
     return self.draw()
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/charts/axes.py", 
line 1214, in draw
     g.add(self.makeTicks())
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/charts/axes.py", 
line 476, in makeTicks
     g = self._drawTicks(self.tickUp,self.tickDown)
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/charts/axes.py", 
line 420, in _drawTicks
     self._drawTicksInner(tU,tD,g)
   File 
"/usr/local/lib/python2.4/site-packages/reportlab/graphics/charts/axes.py", 
line 415, in _drawTicksInner
     
self._makeLines(g,tU,-tD,self.strokeColor,sW,self.strokeDashArray,self.strokeLineJoin,self.strokeLineCap,self.strokeMiterLimit)
TypeError: _makeLines() takes at most 8 arguments (10 given)
Thank you,
Marvin Hubenthal
    
    
More information about the reportlab-users
mailing list