[Zope] [2.6.4] python2.2 fails to compile zope stuff
Jonas Meurer
jonas at freesources.org
Fri May 14 11:58:52 EDT 2004
hello,
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
File "/usr/lib/zope/lib/python/Products/SilvaDocument/widgets/util/get_title_text.py", line 14
return editorsupport.render_heading_as_html(child)
SyntaxError: 'return' outside function
File "/usr/lib/zope/lib/python/Products/SilvaDocument/widgets/util/render_dlist.py", line 22
return content
SyntaxError: 'return' outside function
File "/usr/lib/zope/lib/python/Products/SilvaDocument/widgets/util/render_list.py", line 33
return '<%s class="%s">\n%s</%s>' % (
SyntaxError: 'return' outside function
Sorry: TypeError: compile() argument 1 must be string without null bytes, not str
Sorry: TypeError: compile() argument 1 must be string without null bytes, not str
any suggestions how to debug/fix it?
bye
jonas
More information about the Zope
mailing list