[Zope] Question about debugging errors indicated by compilezpy.py

Dieter Maurer dieter at handshake.de
Wed Dec 8 14:17:12 EST 2004


Douglas Wade Needham wrote at 2004-12-7 17:43 -0500:
>Thanks for the reply.  Here is the exact output in one of the cases, in
>this case from the install of Archetypes (sorry for the long lines). 
>...
>    (cd /usr/pkg/lib/zope27/lib/python/Products/PortalTransforms;  /usr/pkg/bin/python2p3 /usr/pkg/lib/zope27/bin/compilezpy.py || true)
>    
>    ------------------------------------------------------------------------------
>    Compiling python modules
>    
>    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>    There were errors during Python module compilation.
>    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I looked at the code of "compilezpy.py" (maybe, you do the same).
It might help when you comment out the line

   "sys.stdout = Shutup()"

If not, you want to catch the case when "compileall.compile"
returns "False" for the first time and output the failing directory.
In that directory, you can then look for missing "*.pyc" files.

-- 
Dieter


More information about the Zope mailing list