[Zope3-Users] Re: Prob + instaling zope

Laurence Rowe l at lrowe.co.uk
Thu Mar 16 15:28:26 EST 2006


Looks like you need to rebuild python where it has access to the zlib 
header files (try installing a package named something like zlib-dev at 
a guess).

Laurence

Alex wrote:
> Hi All,
> 
> When a try "make check":
> 
> Before execute make, I brought up to date python 2.4.1 to 2.4.2 (tar.gz)
> Is it possible some mistake in python instalation ?, any idea ?
> 
> root at suporte Zope-3.2.0]# make check
> /usr/local/bin/python install.py -q build
> /usr/local/bin/python test.py -v
> Running tests at all levels
> Test-module import failures:
> 
> Module: zope.app.tree.browser.tests
> 
> Traceback (most recent call last):
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/browser/tests.py",
> line 24, in ?
>     from zope.app.tree.utils import TreeStateEncoder
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/utils.py",
> line 18, in ?
>     import zlib
> ImportError: No module named zlib
> 
> 
> Module: zope.app.tree.tests.test_adapters
> 
> Traceback (most recent call last):
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/tests/test_adapters.py",
> line 38, in ?
>     from zope.app.tree.utils import TreeStateEncoder
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/utils.py",
> line 18, in ?
>     import zlib
> ImportError: No module named zlib
> 
> 
> Module: zope.app.tree.tests.test_encoder
> 
> ImportError: No module named zlib
> 
> 
> Module: zope.app.tree.tests.test_filters
> 
> Traceback (most recent call last):
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/tests/test_filters.py",
> line 26, in ?
>     from test_adapters import SampleContent
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/tests/test_adapters.py",
> line 38, in ?
>     from zope.app.tree.utils import TreeStateEncoder
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/utils.py",
> line 18, in ?
>     import zlib
> ImportError: No module named zlib
> 
> 
> Module: zope.app.tree.tests.test_node
> 
> Traceback (most recent call last):
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/tests/test_node.py",
> line 19, in ?
>     from basetest import BaseTestCase
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/tests/basetest.py",
> line 26, in ?
>     from zope.app.tree.utils import TreeStateEncoder
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zope/app/tree/utils.py",
> line 18, in ?
>     import zlib
> ImportError: No module named zlib
> 
> Error in test testUmask (zdaemon.tests.testzdrun.ZDaemonTests)
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.4/unittest.py", line 270, in run
>     self.tearDown()
>   File "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zdaemon/tests/testzdrun.py",
> line 76, in tearDown
>     self.assertEqual(self.expect, output)
>   File "/usr/local/lib/python2.4/unittest.py", line 333, in failUnlessEqual
>     raise self.failureException, \
> AssertionError: '' != '\n\nFailure in test testUmask
> (zdaemon.tests.testzdrun.ZDaemonTests)\nTraceback (most recent call
> last):\n  File "/usr/local/lib/python2.4/unittest.py", line 260, in
> run\n    testMethod()\n  File
> "/root/zope/Zope-3.2.0/build/lib.linux-i686-2.4/zdaemon/tests/testzdrun.py",
> line 271, in testUmask\n    self.fail("""\n  File
> "/usr/local/lib/python2.4/unittest.py", line 301, in fail\n    raise
> self.failureException, msg\nAssertionError: \nI am root!\nDo not run
> the tests as root.\nTesting proper umask handling cannot be done as
> root.\nFurthermore, it is not a good idea and strongly discouraged to
> run zope, the \nbuild system (configure, make) or the tests as
> root.\nIn general do not run anything as root unlessabsolutely
> necessary.\n\n\n'
> 
> Ran 8022 tests with 1 failures and 1 errors in 849.944 seconds.
> 
> Test-modules with import problems:
>   zope.app.tree.browser.tests
>   zope.app.tree.tests.test_adapters
>   zope.app.tree.tests.test_encoder
>   zope.app.tree.tests.test_filters
>   zope.app.tree.tests.test_node
> make: ** [check] Erro 1
> 
> Best
> Alex.



More information about the Zope3-users mailing list