[Zope] [2.6.4] python2.2 fails to compile zope stuff

Dieter Maurer dieter at handshake.de
Fri May 14 15:27:24 EDT 2004

Jonas Meurer wrote at 2004-5-14 17:58 +0200:
>The last debian upgrade broke because it starts the following command
>every upgrade and this time it crashed:
>python2.2 -O /usr/lib/python2.2/compileall.py -q /usr/lib/zope
>It gives thousands of errors, mainly "SyntaxError: 'return' outside
>function", but also others:

>SyntaxError: 'return' outside function

It entered a directory with "FSPythonScripts".

  An "FSPythonScript" is like a Python function but without
  the "def header". Therefore, Python finds "return"s outside
  of a function.

Do not try to compile "FSPythonScripts". This is useless
(and will not work, as you already found out).


More information about the Zope mailing list