[reportlab-users] Run time error with version 3.4
robin at reportlab.com
Thu May 18 10:36:58 EDT 2017
The typo was fixed in rev 4353. You can get the latest packages from
use pip install -ihttps://www.reportlab.com/pypi -U reportlab
(needs a user id and login). Alternatively just download the latest source from
The content of the error message should give you a hint as to what is going
wrong. However, it is most likely you are trying to save a canvas more than once.
On 18/05/2017 14:44, Peter Cock via reportlab-users wrote:
> That in itself is a typo, RunTimeError should be RuntimeError
> which is a built in exception in Python (lower case t).
> However, that won't solve the underlying problem which is something
> about class instances which can only be solved once?
> On Thu, May 18, 2017 at 2:35 PM, lizhe Xu via reportlab-users
> <reportlab-users at lists2.reportlab.com> wrote:
>> My colleague sent me a python script which he is using frequently and no
>> problem or error. I don't know which version of reportlab he uses but it's
>> not the latest verison 3.4. When I got it and run on my Mac with Python 2.7
>> File "/usr/local/lib/python2.7/site-packages/reportlab/pdfbase/pdfdoc.py",
>> line 211, in SaveToFile
>> raise RunTimeError("class %s instances can only be saved once" %
>> NameError: global name 'RunTimeError' is not defined
>> [Finished in 132.485s
>> Please help to fix the problem. Thanks.
>> reportlab-users mailing list
>> reportlab-users at lists2.reportlab.com
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
More information about the reportlab-users