compile errors on install

Bug #590 reported by darmou
4
Affects Status Importance Assigned to Milestone
zope2.7 (Ubuntu)
Invalid
Medium
Ubuntu Zope Team

Bug Description

As subject states, when I try to install zope2.7 I get these errors:

Compiling /usr/lib/zope2.7/lib/python/Products/PloneSiteMap/skins/PloneSiteMap/g
etSiteMap.py ...
  File "/usr/lib/zope2.7/lib/python/Products/PloneSiteMap/skins/PloneSiteMap/get
SiteMap.py", line 21
    return []
SyntaxError: 'return' outside functi...

As subject states, when I try to install zope2.7 I get these errors:

Compiling /usr/lib/zope2.7/lib/python/Products/PloneSiteMap/skins/PloneSiteMap/g
etSiteMap.py ...
  File "/usr/lib/zope2.7/lib/python/Products/PloneSiteMap/skins/PloneSiteMap/get
SiteMap.py", line 21
    return []
SyntaxError: 'return' outside function

Compiling /usr/lib/zope2.7/lib/python/Products/RedirectionTool/skins/redirection
_tool/standard_error_message.py ...
  File "/usr/lib/zope2.7/lib/python/Products/RedirectionTool/skins/redirection_t
ool/standard_error_message.py", line 37
    return error_page
SyntaxError: 'return' outside function

Thanks,

Daryl

Revision history for this message
Hervé Cauwelier (hcauwelier-deactivatedaccount) wrote :

Can you give me the list of products you wanted to use so I can set up the same environment as yours and try to reproduce your problem.

Revision history for this message
darmou (dmoulder-registrations42366) wrote :

I found out that zope2.7 was being compiled with python2.4 which I think ignores the -q (compile quietly). I was able to fix the problem by altering the postinst script to stop it compiling after install. I does not need to do a post compile as that can be done at runtime.

Daryl

Changed in zope2.7:
assignee: nobody → motu
Changed in zope2.7:
assignee: motu → pkg-zope
Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

Hi Daryl,

Do you still have these issues with zope2.7 or zope2.8 on Dapper?

Revision history for this message
Andrew Mitchell (ajmitch) wrote :

zope2.7 has been removed from dapper now, please reopen against zope2.8 if the problem exists there.

Changed in zope2.7:
status: Unconfirmed → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.