[reportlab-users] graph error
Robin Becker
robin at reportlab.com
Tue Apr 12 03:54:56 EDT 2005
Timothy Smith wrote:
> 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?
>
>
......
> "/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)
>
.... this looks as though one of the data is some kind of active object
and not a normal real/integer number. The three args refers to the
routine in PgSQL.py which is doing multiplication.
--
Robin Becker
More information about the reportlab-users
mailing list