Re: [Zope] Re: [Zope-Annce] Zope 2.5.0 beta 4 released
Yes, it does bomb out. And no, I don't get any traceback. Is there a way to disable these unit tests during an install run?
From: Eron Lloyd <lloyd@lancaster.lib.pa.us> To: "Roland C. Reumerman" <zope_ddi@hotmail.com> CC: zope@zope.org Subject: Re: [Zope] Re: [Zope-Annce] Zope 2.5.0 beta 4 released Date: Tue, 15 Jan 2002 14:18:49 -0500
Those SyntaxError exceptions relate to unittests in the standard Python libraries. Unfortunately they print out to stdout (and make the unknowing user think there is a problem) and aren't surpressed by Zope's installer. It seems Zope runs the unit tests on install and these seem to be verbose for some reason (I haven't looked into it to deeply yet).
So basically, these error messages don't return anything helpful. Does the installation continue past the compilation or does it bomb out? Do you get a traceback?
Eron
On Tuesday 15 January 2002 01:08 pm, you wrote:
Nice to see yet another beta release of Zope 2.5!
However, I don't get this release "installed" on Linux. When I try to run ./install with the extracted tgz file, I get the following error message:
---------------------------------------------------------------------------
--- Compiling python modules File "/home/roland/Zope-2.5.0b4-linux2-x86/lib/python2.1/test/nocaret.py", line 2 [x for x in x] = x SyntaxError: can't assign to list comprehension SyntaxError: from __future__ imports must occur at the beginning of the file (test_future3.py, line 3) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future4.py, line 3) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future5.py, line 4) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future6.py, line 3) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future7.py, line 3)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! There were errors during Python module compilation.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!
Any clue what goes wrong? Roland
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Roland C. Reumerman wrote:
Yes, it does bomb out. And no, I don't get any traceback. Is there a way to disable these unit tests during an install run?
From: Eron Lloyd <lloyd@lancaster.lib.pa.us> Those SyntaxError exceptions relate to unittests in the standard Python libraries. Unfortunately they print out to stdout (and make the unknowing user think there is a problem) and aren't surpressed by Zope's installer. It seems Zope runs the unit tests on install and these seem to be verbose for some reason (I haven't looked into it to deeply yet).
\>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! There were errors during Python module compilation.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!
Any clue what goes wrong?
As the message says, there were syntax errors in unit tests discovered during module compilation. The installer pre-compiles all *.py files (test or not) for speed. The tests are not actually being run. Cheers, Evan @ Zope
Would it be possible to supress those printouts during install? My guess is that nocaret.py and test_future7.py in test/ would have to be re-written not to be verbose when using compile(). Looking at the code it seems they are designed to fail out and report back, as that's their purpose. I usually write my tests to take redirection if necessary (like to a log) when there's a chance an end-user might need to run the code that does regression checking. I don't know if this is fixed or not in the 2.2 test suite, as I haven't been ambitious enough to upgrade (yet). I've had several people panic when they saw that error, thinking the install went wrong. For now, could we have the installer *ignore* the test directory during the recursive compile? I don't see a reason why we would need that pre-compiled, anyways. Regards, Eron
As the message says, there were syntax errors in unit tests discovered during module compilation. The installer pre-compiles all *.py files (test or not) for speed. The tests are not actually being run.
Removing the test scripts will allow the installation to complete. It appears to have no adverse affect on the installation or subsequent running of zope. This is a short term solution until the tests are fixed. I did this yesterday and it worked fine. -Chris On Wednesday 16 January 2002 04:01 am, Roland C. Reumerman wrote:
Yes, it does bomb out. And no, I don't get any traceback. Is there a way to disable these unit tests during an install run?
From: Eron Lloyd <lloyd@lancaster.lib.pa.us>
To: "Roland C. Reumerman" <zope_ddi@hotmail.com> CC: zope@zope.org Subject: Re: [Zope] Re: [Zope-Annce] Zope 2.5.0 beta 4 released Date: Tue, 15 Jan 2002 14:18:49 -0500
Those SyntaxError exceptions relate to unittests in the standard Python libraries. Unfortunately they print out to stdout (and make the unknowing user think there is a problem) and aren't surpressed by Zope's installer. It seems Zope runs the unit tests on install and these seem to be verbose for some reason (I haven't looked into it to deeply yet).
So basically, these error messages don't return anything helpful. Does the installation continue past the compilation or does it bomb out? Do you get a traceback?
Eron
On Tuesday 15 January 2002 01:08 pm, you wrote:
Nice to see yet another beta release of Zope 2.5!
However, I don't get this release "installed" on Linux. When I try to
run
./install with the extracted tgz file, I get the following error
message:
-------------------------------------------------------------------------- -
--- Compiling python modules File "/home/roland/Zope-2.5.0b4-linux2-x86/lib/python2.1/test/nocaret.py",
line
2 [x for x in x] = x SyntaxError: can't assign to list comprehension SyntaxError: from __future__ imports must occur at the beginning of the file (test_future3.py, line 3) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future4.py, line 3) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future5.py, line 4) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future6.py, line 3) SyntaxError: from __future__ imports must occur at the beginning of the file (test_future7.py, line 3)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !
!!! There were errors during Python module compilation.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !
!!!
Any clue what goes wrong? Roland
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
_______________________________________________ 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 )
-- Chris Kratz Systems Analyst/Programmer VistaShare LLC www.vistashare.com
participants (4)
-
Chris Kratz -
Eron Lloyd -
Evan Simpson -
Roland C. Reumerman