Comment 8 for bug 460389

Revision history for this message
TJ (tj) wrote : Re: [Bug 460389] Re: SyntaxError in KeyboardSVG.py with Python 2.5

On Thu, 2010-01-28 at 18:27 +0000, Francesco Fumanti wrote:
> Thanks TJ for the explanation of the problem and the instruction about
> how to fix it.
>
> However, I wonder whether the patches are really necessary for karmic
> and lucid: are they not shipping by default python 2.6 that knows the
> "with" keyword?

They are, but Python 2.5 is still an optional installation and for some
packages is still a dependency that gets installed.

That was how I met the issue - tried to install some other package
("rpm" which depends on "python-rpm" which depends on "python2.5") which
caused this issue when the python2.5 installation process tried to
byte-compile the packages from "/usr/share/pyshared/" into its
"site-packages/" directory.