[p4dti-discussion] FW: Problem with P4DTI 2.2.2 and Bugzilla 2.18.1

Nick Barnes nb at ravenbrook.com
Tue Jun 28 10:42:06 BST 2005


At 2005-06-28 09:07:34+0000, Nick Barnes writes:
> At 2005-06-27 23:27:42+0000, "Brent Browning" writes:
> > I had been running P4DTI 2.1.2 previously with an older version of
> > Bugzilla.  I upgraded to Bugzilla 2.18.1 recently and am re-installing
> > P4DTI.  I followed all the instructions but when I start P4DTI I get:
> > 
> > # python run.py
> > Traceback (innermost last):
> >   File "run.py", line 20, in ?
> >     from init import r
> >   File "init.py", line 134, in ?
> >     configure_module = __import__('configure_' + configure_name)
> >   File "configure_bugzilla.py", line 24, in ?
> >     import bugzilla
> >   File "bugzilla.py", line 1475
> >     groupset += group['bit']
> >               ^
> > SyntaxError: invalid syntax
> > 
> > Anyone seen this before?
> 
> You're running an old Python.  You need Python 2.0 or later.  I
> believe the release notes may be out of step.

In more detail: Python 1.5.x didn't have the "augmented assignment"
operators, such as the += operator which is causing this error.  They
were introduced in Python 2.0 on 2000-10-16.

P4DTI 2.1 supported Python 1.5.2 but the release notes for all the
2.1.x releases stated "Support for Python 1.5.2 is deprecated, and may
be dropped in a future version of the P4DTI."  P4DTI 2.2 did indeed
drop support for Python 1.5.2, and the release notes specify "Python
2.0, or later".  You are running a P4DTI 2.2.x release.

Note that when upgrading your Python to 2.x, you will also need to
upgrade your MySQL-python module, and your Python Windows extensions
if running on Microsoft Windows.

Nick Barnes
P4DTI Project
Ravenbrook Limited



More information about the P4DTI-discussion mailing list