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

Douglas Wade Needham cinnion at ka8zrt.com
Tue Dec 7 17:43:45 EST 2004


Hey Dieter,

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).  On my
system, the python executable is /usr/pkg/bin/python2p3, and the software
is installed in /usr/pkg/lib/zope27.


    (cd /usr/pkg/lib/zope27/lib/python/Products/Archetypes;  /usr/pkg/bin/python2p3 /usr/pkg/lib/zope27/bin/compilezpy.py || true)
    
    ------------------------------------------------------------------------------
    Compiling python modules
    (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.
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    
    (cd /usr/pkg/lib/zope27/lib/python/Products/generator;  /usr/pkg/bin/python2p3 /usr/pkg/lib/zope27/bin/compilezpy.py || true)
    
    ------------------------------------------------------------------------------
    Compiling python modules
    (cd /usr/pkg/lib/zope27/lib/python/Products/validation;  /usr/pkg/bin/python2p3 /usr/pkg/lib/zope27/bin/compilezpy.py || true)
    
    ------------------------------------------------------------------------------
    Compiling python modules

I even did this by hand, and got the same errors.  Similiar output is
seen in that case as well.

Like you, I have seen more output in the past.  In one such instance, I got
a "FutureWarning" message about ParsedXML/DOM/Traversal.py at line 43 using
a "hex/oct constant > sys.maxint" for SHOW_ALL.  But in many other cases, I
have not gotten anything other than the "There were errors..." message.  I
am slightly inclined to ignore it, but after 20+ years of programming, most
of me believes that the only good warning/error message is no warning/error
message.

- Doug

    
Quoting Dieter Maurer (dieter at handshake.de):
> Douglas Wade Needham wrote at 2004-12-7 11:28 -0500:
> > ...
> >However, I continue to have
> >a problem with a few modules, such as Archetypes (currently 1.2.5rc5)
> >and PloneCollectorNG (currently 1.2.6).  When compiling the module, I
> >get a message from compilezpy.py stating "There were errors during
> >Python module compilation."
> 
> I have seen such reports -- but in all those cases, there
> were more specific messages before the "There were errors..."
> and those explained the problem. You are sure, you did not see
> such messages?
> 
> > ...
> >    How can I find out what the errors were which caused this message,
> >    and where did they occur?
> 
> Look through the code and find the place that wrote
> the (unhelpful MS-like) message "There were errors".
> It probably is in an "except" clause. If though, ensure that
> the full exception information is printed as well...
> 
> 
> -- 
> Dieter


More information about the Zope mailing list