1. Tarek Ziadé
  2. distutils-buildbot
  3. Issues
Issue #1 new

buildbot, installed from scratch, distutils fails unit tests, missing zlib

Steve Steiner
created an issue

I've just downloaded and configured the distutils buildbot and it appears that a dependency is missing somewhere. I get this (just the errors excerpted).

Not sure whether this is actually a distutils bug, but it's probably just a missing dependency not installed by the buildbot setup.

test_make_tarball (distutils.tests.test_archive_util.ArchiveUtilTestCase) ... skipped 'requires zlib' test_make_zipfile (distutils.tests.test_archive_util.ArchiveUtilTestCase) ... skipped 'Requires zlib' test_tarfile_root_owner (distutils.tests.test_archive_util.ArchiveUtilTestCase) ... skipped 'Requires zlib' test_tarfile_vs_tar (distutils.tests.test_archive_util.ArchiveUtilTestCase) ... skipped 'Requires zlib'

====================================================================== ERROR: test_make_archive_owner_group (distutils.tests.test_archive_util.ArchiveUtilTestCase)

Traceback (most recent call last): File "/home/ssteiner/distutils-builbot/parts/trunk-checkout/python/Lib/distutils/tests/test_archive_util.py", line 224, in test_make_archive_owner_group group=group) File "/home/ssteiner/distutils-builbot/parts/trunk-checkout/python/Lib/distutils/archive_util.py", line 236, in make_archive filename = func(base_name, base_dir, **kwargs) File "/home/ssteiner/distutils-builbot/parts/trunk-checkout/python/Lib/distutils/archive_util.py", line 163, in make_zipfile compression=zipfile.ZIP_DEFLATED) File "/home/ssteiner/distutils-builbot/parts/trunk-checkout/python/Lib/zipfile.py", line 675, in init "Compression requires the (missing) zlib module" RuntimeError: Compression requires the (missing) zlib module

Ran 158 tests in 1.242s

FAILED (errors=1, skipped=11) test test_distutils crashed -- <type 'exceptions.OSError'>: [Errno 2] No such file or directory Traceback (most recent call last): File "Lib/test/regrtest.py", line 767, in runtest_inner File "Lib/test/regrtest.py", line 723, in exit File "Lib/test/regrtest.py", line 686, in get_cwd OSError: [Errno 2] No such file or directory 1 test failed: test_distutils