[Python-modules-team] Bug#973194: ldif3: FTBFS: dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.9 3.8" returned exit code 13

Lucas Nussbaum lucas at debian.org
Tue Oct 27 17:19:32 GMT 2020


Source: ldif3
Version: 3.2.2-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
>  debian/rules build
> dh build --with=python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:217: python3.9 setup.py config 
> running config
> I: pybuild base:217: python3.8 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:217: /usr/bin/python3.9 setup.py build 
> running build
> running build_py
> copying ldif3.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build
> I: pybuild base:217: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying ldif3.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_ldif3/build
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:284: cp /<<PKGBUILDDIR>>/tests.py /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build; python3.9 -m nose -v 
> test_happy (tests.TestIsDn) ... ok
> test_check_changetype_dn_none (tests.TestLDIFParser) ... ok
> test_check_changetype_happy (tests.TestLDIFParser) ... ok
> test_check_changetype_invalid (tests.TestLDIFParser) ... ok
> test_check_changetype_not_none (tests.TestLDIFParser) ... ok
> test_check_dn_happy (tests.TestLDIFParser) ... ok
> test_check_dn_invalid (tests.TestLDIFParser) ... ok
> test_check_dn_not_none (tests.TestLDIFParser) ... ok
> test_iter_blocks (tests.TestLDIFParser) ... ok
> test_iter_blocks_with_additional_spaces (tests.TestLDIFParser) ... ok
> test_iter_unfolded_lines (tests.TestLDIFParser) ... ok
> test_parse (tests.TestLDIFParser) ... ok
> test_parse_attr_base64 (tests.TestLDIFParser) ... ERROR
> test_parse_attr_dn_non_utf8 (tests.TestLDIFParser) ... ok
> test_parse_attr_url (tests.TestLDIFParser) ... SKIP: No network connectivity available
> test_parse_attr_url_all_ignored (tests.TestLDIFParser) ... SKIP: No network connectivity available
> test_parse_attr_url_this_ignored (tests.TestLDIFParser) ... SKIP: No network connectivity available
> test_parse_binary (tests.TestLDIFParser) ... ERROR
> test_parse_binary_raw (tests.TestLDIFParser) ... ERROR
> test_strip_line_sep (tests.TestLDIFParser) ... ok
> test_parse (tests.TestLDIFParserEmptyAttrValue) ... ok
> test_parse_value (tests.TestLDIFParserEmptyAttrValue) ... ok
> test_fold_line_10_n (tests.TestLDIFWriter) ... ok
> test_fold_line_12_underscore (tests.TestLDIFWriter) ... ok
> test_fold_line_oneline (tests.TestLDIFWriter) ... ok
> test_needs_base64_encoding_forced (tests.TestLDIFWriter) ... ok
> test_needs_base64_encoding_not_safe (tests.TestLDIFWriter) ... ok
> test_needs_base64_encoding_safe (tests.TestLDIFWriter) ... ok
> test_unparse (tests.TestLDIFWriter) ... ok
> test_unparse_attr_base64 (tests.TestLDIFWriter) ... ERROR
> test_unparse_binary (tests.TestLDIFWriter) ... ERROR
> test_unparse_changetype_add (tests.TestLDIFWriter) ... ok
> test_unparse_changetype_modify (tests.TestLDIFWriter) ... ok
> test_unparse_changetype_other (tests.TestLDIFWriter) ... ok
> test_unparse_entry_record (tests.TestLDIFWriter) ... ok
> test_unparse_fail (tests.TestLDIFWriter) ... ok
> test_unparse_unicode_dn (tests.TestLDIFWriter) ... ERROR
> test_unparse_uniqode (tests.TestLDIFWriter) ... ERROR
> test_dict (tests.TestLower) ... ok
> test_falsy (tests.TestLower) ... ok
> test_happy (tests.TestLower) ... ok
> test_set (tests.TestLower) ... ok
> test_example (tests.TestUnsafeString) ... ok
> test_trailing_newline (tests.TestUnsafeString) ... ok
> test_unsafe_chars (tests.TestUnsafeString) ... ok
> test_unsafe_chars_init (tests.TestUnsafeString) ... ok
> 
> ======================================================================
> ERROR: test_parse_attr_base64 (tests.TestLDIFParser)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/tests.py", line 231, in test_parse_attr_base64
>     attr_type, attr_value = self.p._parse_attr(b'foo:: YQpiCmM=\n')
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 315, in _parse_attr
>     attr_value = base64.decodestring(line[colon_pos + 2:])
> AttributeError: module 'base64' has no attribute 'decodestring'
> 
> ======================================================================
> ERROR: test_parse_binary (tests.TestLDIFParser)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/tests.py", line 276, in test_parse_binary
>     items = list(self.p.parse())
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 384, in parse
>     yield self._parse_entry_record(block)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 357, in _parse_entry_record
>     attr_type, attr_value = self._parse_attr(line)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 315, in _parse_attr
>     attr_value = base64.decodestring(line[colon_pos + 2:])
> AttributeError: module 'base64' has no attribute 'decodestring'
> 
> ======================================================================
> ERROR: test_parse_binary_raw (tests.TestLDIFParser)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/tests.py", line 288, in test_parse_binary_raw
>     items = list(self.p.parse())
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 384, in parse
>     yield self._parse_entry_record(block)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 357, in _parse_entry_record
>     attr_type, attr_value = self._parse_attr(line)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 315, in _parse_attr
>     attr_value = base64.decodestring(line[colon_pos + 2:])
> AttributeError: module 'base64' has no attribute 'decodestring'
> 
> ======================================================================
> ERROR: test_unparse_attr_base64 (tests.TestLDIFWriter)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/tests.py", line 351, in test_unparse_attr_base64
>     self.w._unparse_attr('foo', 'a\nb\nc')
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 131, in _unparse_attr
>     encoded = base64.encodestring(attr_value)\
> AttributeError: module 'base64' has no attribute 'encodestring'
> 
> ======================================================================
> ERROR: test_unparse_binary (tests.TestLDIFWriter)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/tests.py", line 393, in test_unparse_binary
>     self.w.unparse(u'cn=Bjorn J Jensen', {u'jpegPhoto': [b'\xf0\xf2\xf3']})
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 195, in unparse
>     self._unparse_entry_record(record)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 146, in _unparse_entry_record
>     self._unparse_attr(attr_type, attr_value)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 131, in _unparse_attr
>     encoded = base64.encodestring(attr_value)\
> AttributeError: module 'base64' has no attribute 'encodestring'
> 
> ======================================================================
> ERROR: test_unparse_unicode_dn (tests.TestLDIFWriter)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/tests.py", line 398, in test_unparse_unicode_dn
>     self.w.unparse(u'cn=Björn J Jensen', {u'foo': [u'bar']})
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 193, in unparse
>     self._unparse_attr('dn', dn)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 131, in _unparse_attr
>     encoded = base64.encodestring(attr_value)\
> AttributeError: module 'base64' has no attribute 'encodestring'
> 
> ======================================================================
> ERROR: test_unparse_uniqode (tests.TestLDIFWriter)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/tests.py", line 403, in test_unparse_uniqode
>     self.w.unparse("o=x", {'test': [u'日本語']})
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 195, in unparse
>     self._unparse_entry_record(record)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 146, in _unparse_entry_record
>     self._unparse_attr(attr_type, attr_value)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build/ldif3.py", line 131, in _unparse_attr
>     encoded = base64.encodestring(attr_value)\
> AttributeError: module 'base64' has no attribute 'encodestring'
> 
> ----------------------------------------------------------------------
> Ran 46 tests in 0.029s
> 
> FAILED (SKIP=3, errors=7)
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_ldif3/build; python3.9 -m nose -v 
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.9 3.8" returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/ldif3_3.2.2-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Python-modules-team mailing list