[reportlab-users] bug in utils3d.py
Dirk Datzert
reportlab-users@reportlab.com
Sun, 30 Nov 2003 19:30:18 +0100
Hi all,
on 'python setup.py bdist' I got an error in graphics/charts/utils3d.py:
in byte_compile
File "/usr/lib/python2.1/py_compile.py", line 62, in compile
codeobject = __builtin__.compile(codestring, dfile or file, 'exec')
OverflowError: ('integer literal too large',
('/usr/lib/python2.1/site-packages/rep
ortlab/graphics/charts/utils3d.py', 229, None,
"D.save(formats=['pdf'],outDir='.',f
nRoot='_draw_3d_bar')\n"))
To fix this change line 229 to:
print
find_intersections([[(0,0.5),(1,0.5),(0.5,0),(0.5,1)],[(2.666666667,0.4),
(0.1,0.4),(0.1,0.2),(0,0),(1,1)],[(0,1),(0.4,0.1),(1,0.1)]])
2666666667 should be changed to 2.666666667 or something else.
Regards,
Dirk