[Zope] zope-2.5.1_2 compilation failures

Jens Vagelpohl jens@zope.com
Wed, 20 Nov 2002 21:59:23 -0500


that port seems to have some products preinstalled.

move the squishdot folder out of the way when you compile and put it  
back when you are done. the compilation script attempts to compile all  
files ending in .py but it stumbles on filesystem python scripts which,  
to a python compiler, do not appear syntactically correct.

jens


On Wednesday, Nov 20, 2002, at 16:10 US/Eastern, Noah Garrett Wallach  
wrote:

>
>
> attempting to install zope-2.5.1_2 on a FreeBSD 4.7 Stable machine.
> making from /usr/ports - I get a compiliation failure.  Can anybody
> suggest what I can do from here?
>
> ----------------------------------------------------------------------- 
> -------
> Writing the pcgi resource file (ie cgi script),
> /usr/local/www/Zope/Zope.cgi
> chmod 0755 /usr/local/www/Zope/Zope.cgi
>
> ----------------------------------------------------------------------- 
> -------
> Deleting '.pyc' and '.pyo' files recursively under  
> /usr/local/www/Zope...
> Done.
>
> ----------------------------------------------------------------------- 
> -------
> Compiling python modules
>   File
> "/usr/local/www/Zope/lib/python/Products/Squishdot/validatePosting.py",
> lin
> e 31
>     return Processed,'You must enter an email address for  
> notification!'
> SyntaxError: 'return' outside function
>
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
> !!!!!!!
> There were errors during Python module compilation.
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
> !!!!!!!
>
> *** Error code 1
>
> Stop in /usr/ports/www/zope.
> typhoon#
>
> have python 2.1.3 installed on the machine
>
> --- snip ---
> Stop in /usr/ports/www/zope.
> typhoon#  python
> Python 2.1.3 (#1, Nov 19 2002, 19:39:45)
> [GCC 2.95.4 20020320 [FreeBSD]] on freebsd4
> Type "copyright", "credits" or "license" for more information.
> --- snip ---
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )