[Pkg-mailman-hackers] Bug#964697: django-mailman3: FTBFS: ValueError: max() arg is an empty sequence

Lucas Nussbaum lucas at debian.org
Thu Jul 9 11:57:56 BST 2020


Source: django-mailman3
Version: 1.3.2-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200709 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py3versions: no X-Python3-Version in control file, using supported versions
> set -e; \
> for python3 in python3.8; do \
>                 $python3 /usr/bin/django-admin test --pythonpath=. --settings=django_mailman3.tests.settings_test django_mailman3; \
> done
> Creating test database for alias 'default'...
> ...........................................................EEEE.EEE...
> ======================================================================
> ERROR: test_attachment_3 (django_mailman3.tests.test_scrub.TestScrubber)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./django_mailman3/tests/test_scrub.py", line 83, in test_attachment_3
>     contents, attachments = scrubber.scrub()
>   File "./django_mailman3/lib/scrub.py", line 77, in scrub
>     attachments = self._get_all_attachments()
>   File "./django_mailman3/lib/scrub.py", line 99, in _get_all_attachments
>     part.set_content('')
>   File "/usr/lib/python3.8/email/message.py", line 1171, in set_content
>     super().set_content(*args, **kw)
>   File "/usr/lib/python3.8/email/message.py", line 1101, in set_content
>     content_manager.set_content(self, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 37, in set_content
>     handler(msg, obj, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 185, in set_text_content
>     cte, payload = _encode_text(string, charset, cte, msg.policy)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 149, in _encode_text
>     if max(len(x) for x in lines) <= policy.max_line_length:
> ValueError: max() arg is an empty sequence
> 
> ======================================================================
> ERROR: test_attachment_4 (django_mailman3.tests.test_scrub.TestScrubber)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./django_mailman3/tests/test_scrub.py", line 161, in test_attachment_4
>     contents, attachments = scrubber.scrub()
>   File "./django_mailman3/lib/scrub.py", line 77, in scrub
>     attachments = self._get_all_attachments()
>   File "./django_mailman3/lib/scrub.py", line 99, in _get_all_attachments
>     part.set_content('')
>   File "/usr/lib/python3.8/email/message.py", line 1171, in set_content
>     super().set_content(*args, **kw)
>   File "/usr/lib/python3.8/email/message.py", line 1101, in set_content
>     content_manager.set_content(self, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 37, in set_content
>     handler(msg, obj, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 185, in set_text_content
>     cte, payload = _encode_text(string, charset, cte, msg.policy)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 149, in _encode_text
>     if max(len(x) for x in lines) <= policy.max_line_length:
> ValueError: max() arg is an empty sequence
> 
> ======================================================================
> ERROR: test_attachment_5 (django_mailman3.tests.test_scrub.TestScrubber)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./django_mailman3/tests/test_scrub.py", line 184, in test_attachment_5
>     contents, attachments = scrubber.scrub()
>   File "./django_mailman3/lib/scrub.py", line 77, in scrub
>     attachments = self._get_all_attachments()
>   File "./django_mailman3/lib/scrub.py", line 95, in _get_all_attachments
>     part.set_content('')
>   File "/usr/lib/python3.8/email/message.py", line 1171, in set_content
>     super().set_content(*args, **kw)
>   File "/usr/lib/python3.8/email/message.py", line 1101, in set_content
>     content_manager.set_content(self, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 37, in set_content
>     handler(msg, obj, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 185, in set_text_content
>     cte, payload = _encode_text(string, charset, cte, msg.policy)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 149, in _encode_text
>     if max(len(x) for x in lines) <= policy.max_line_length:
> ValueError: max() arg is an empty sequence
> 
> ======================================================================
> ERROR: test_attachment_name_badly_encoded (django_mailman3.tests.test_scrub.TestScrubber)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./django_mailman3/tests/test_scrub.py", line 203, in test_attachment_name_badly_encoded
>     attachments = scrubber.scrub()[1]
>   File "./django_mailman3/lib/scrub.py", line 77, in scrub
>     attachments = self._get_all_attachments()
>   File "./django_mailman3/lib/scrub.py", line 95, in _get_all_attachments
>     part.set_content('')
>   File "/usr/lib/python3.8/email/message.py", line 1171, in set_content
>     super().set_content(*args, **kw)
>   File "/usr/lib/python3.8/email/message.py", line 1101, in set_content
>     content_manager.set_content(self, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 37, in set_content
>     handler(msg, obj, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 185, in set_text_content
>     cte, payload = _encode_text(string, charset, cte, msg.policy)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 149, in _encode_text
>     if max(len(x) for x in lines) <= policy.max_line_length:
> ValueError: max() arg is an empty sequence
> 
> ======================================================================
> ERROR: test_html_email_1 (django_mailman3.tests.test_scrub.TestScrubber)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./django_mailman3/tests/test_scrub.py", line 102, in test_html_email_1
>     contents, attachments = scrubber.scrub()
>   File "./django_mailman3/lib/scrub.py", line 77, in scrub
>     attachments = self._get_all_attachments()
>   File "./django_mailman3/lib/scrub.py", line 99, in _get_all_attachments
>     part.set_content('')
>   File "/usr/lib/python3.8/email/message.py", line 1171, in set_content
>     super().set_content(*args, **kw)
>   File "/usr/lib/python3.8/email/message.py", line 1101, in set_content
>     content_manager.set_content(self, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 37, in set_content
>     handler(msg, obj, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 185, in set_text_content
>     cte, payload = _encode_text(string, charset, cte, msg.policy)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 149, in _encode_text
>     if max(len(x) for x in lines) <= policy.max_line_length:
> ValueError: max() arg is an empty sequence
> 
> ======================================================================
> ERROR: test_html_only_email (django_mailman3.tests.test_scrub.TestScrubber)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./django_mailman3/tests/test_scrub.py", line 121, in test_html_only_email
>     contents = scrubber.scrub()[0]
>   File "./django_mailman3/lib/scrub.py", line 77, in scrub
>     attachments = self._get_all_attachments()
>   File "./django_mailman3/lib/scrub.py", line 99, in _get_all_attachments
>     part.set_content('')
>   File "/usr/lib/python3.8/email/message.py", line 1171, in set_content
>     super().set_content(*args, **kw)
>   File "/usr/lib/python3.8/email/message.py", line 1101, in set_content
>     content_manager.set_content(self, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 37, in set_content
>     handler(msg, obj, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 185, in set_text_content
>     cte, payload = _encode_text(string, charset, cte, msg.policy)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 149, in _encode_text
>     if max(len(x) for x in lines) <= policy.max_line_length:
> ValueError: max() arg is an empty sequence
> 
> ======================================================================
> ERROR: test_name_unicode (django_mailman3.tests.test_scrub.TestScrubber)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "./django_mailman3/tests/test_scrub.py", line 229, in test_name_unicode
>     attachments = scrubber.scrub()[1]
>   File "./django_mailman3/lib/scrub.py", line 77, in scrub
>     attachments = self._get_all_attachments()
>   File "./django_mailman3/lib/scrub.py", line 99, in _get_all_attachments
>     part.set_content('')
>   File "/usr/lib/python3.8/email/message.py", line 1171, in set_content
>     super().set_content(*args, **kw)
>   File "/usr/lib/python3.8/email/message.py", line 1101, in set_content
>     content_manager.set_content(self, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 37, in set_content
>     handler(msg, obj, *args, **kw)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 185, in set_text_content
>     cte, payload = _encode_text(string, charset, cte, msg.policy)
>   File "/usr/lib/python3.8/email/contentmanager.py", line 149, in _encode_text
>     if max(len(x) for x in lines) <= policy.max_line_length:
> ValueError: max() arg is an empty sequence
> 
> ----------------------------------------------------------------------
> Ran 70 tests in 3.565s
> 
> FAILED (errors=7)
> Destroying test database for alias 'default'...
> System check identified no issues (0 silenced).
> make[1]: *** [debian/rules:10: override_dh_auto_test] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/07/09/django-mailman3_1.3.2-1_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 Pkg-mailman-hackers mailing list