[reportlab-users] syntax error in doctemplate.py

Gerald Britton gerald.britton at gmail.com
Wed Nov 16 11:17:26 EST 2005


Thanks -- I upgraded to reportlab 1.20 and that fixed it

On 11/16/05, Robin Becker <robin at reportlab.com> wrote:
> Gerald Britton wrote:
> > I get this:
> >
> > I get this:
> >
> > $ python
> > Python 2.4.2 (#1, Oct 13 2005, 10:24:56)
> > [GCC 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> >
> >>>>import reportlab.platypus.tables
> >
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> >   File "/usr/lib/python2.4/site-packages/reportlab/platypus/__init__.py",
> > line 13, in ?
> >     from reportlab.platypus.doctemplate import BaseDocTemplate,
> > NextPageTemplate, PageTemplate, ActionFlowable, \
> >   File "/usr/lib/python2.4/site-packages/reportlab/platypus/doctemplate.py",
> > line 108
> >     t, v, None = sys.exc_info()
> > SyntaxError: assignment to None
>
> .....
>
> This is an error caused by using old style Python where assignment to None was
> allowed with modern Python which disallows it.
>
> There were several of these errors which were fixed around two years ago. Either
> upgrade the version of reportlab or switch to Python < 2.3. As a final
> alternative just change the name None above to UNUSED (which is the intent anyway).
>
> --
> Robin Becker
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>


More information about the reportlab-users mailing list