Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #397850

Bug#1114298: python-biopython: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --test --system=custom "--test-args= \\

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Étienne Mollier <emollier@debian.org>
Newsgroups linux.debian.bugs.rc
Subject Bug#1114298: python-biopython: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --test --system=custom "--test-args= \\
Date Sat, 13 Sep 2025 10:20:01 +0200
Message-ID <LutEd-eXPU-1@gated-at.bofh.it> (permalink)
References <LrJvQ-d415-5@gated-at.bofh.it> <LrJvQ-d415-5@gated-at.bofh.it> <LtTU5-ezIT-13@gated-at.bofh.it> <LrJvQ-d415-5@gated-at.bofh.it> <LtTU5-ezIT-13@gated-at.bofh.it>
X-Original-To Santiago Vila <sanvila@debian.org>, 1114298@bugs.debian.org
X-Mailbox-Line From debian-bugs-rc-request@lists.debian.org Sat Sep 13 08:15:11 2025
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -1.699
Reply-To Étienne Mollier <emollier@debian.org>, 1114298@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-med-packaging@lists.alioth.debian.org
X-Debian-Pr-Message followup 1114298
X-Debian-Pr-Package src:python-biopython
X-Debian-Pr-Keywords forky ftbfs sid
X-Debian-Pr-Source python-biopython
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UMLtxWDIj5dJ9Xqx"
Content-Disposition inline
X-Debian-User emollier
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-rc@lists.debian.org> archive/latest/791714
List-ID <debian-bugs-rc.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-rc/>
Approved robomod@news.nic.it
Lines 122
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sat, 13 Sep 2025 10:13:19 +0200
X-Original-Message-ID <aMUnn0ezNNrKf7ik@emlwks999.eu>
X-Original-References <E1uub61-0042CK-28@paradis.debian.org> <E1uub61-0042CK-28@paradis.debian.org> <aMMOiZnD-hHRIc71@nuc> <E1uub61-0042CK-28@paradis.debian.org> <aMMOiZnD-hHRIc71@nuc>
Xref csiph.com linux.debian.bugs.rc:397850

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tags -1 + upstream patch

Hi Santiago,

Thanks for your report!  Concerning the main issue of the entry,
it looks to be caused by a change in bwa 0.7.19, uploaded in sid
last month.  I managed to get somewhere with this workaround:

-------8<--------------8<--------------8<--------------8<-------
--- python-biopython.orig/Tests/test_BWA_tool.py
+++ python-biopython/Tests/test_BWA_tool.py
@@ -161,7 +161,7 @@
             with open(self.samfile1) as handle:
                 headline = handle.readline()
             self.assertTrue(
-                headline.startswith("@SQ"),
+                headline.startswith("@SQ") or headline.startswith("@HD"),
                 f"Error generating sam files:\n{cmdline}\nOutput starts:{headline}",
             )
 
@@ -184,7 +184,7 @@
             with open(self.samfile) as handle:
                 headline = handle.readline()
             self.assertTrue(
-                headline.startswith("@SQ"),
+                headline.startswith("@SQ") or headline.startswith("@HD"),
                 f"Error generating sam files:\n{cmdline}\nOutput starts:{headline}",
             )
 
@@ -201,7 +201,7 @@
             with open(self.samfile) as handle:
                 headline = handle.readline()
             self.assertTrue(
-                headline.startswith("@SQ"),
+                headline.startswith("@SQ" or headline.startswith("@HD"),
                 f"Error generating sam files:\n{cmdline}\nOutput starts:{headline}",
             )
-------8<--------------8<--------------8<--------------8<-------

Regarding your secondary remark:

> Note: In addition to this package failing to build in unstable six
> days ago, it also fails to build in bookworm right now.

the relevant part of the symptoms is different:

	    self.perform_test(
	  File "/build/reproducible-path/python-biopython-1.80+dfsg/.pybuild/cpython3_3.11/build/Tests/test_SeqIO.py", line 631, in perform_test
	    self.check_simple_write_read(
	  File "/build/reproducible-path/python-biopython-1.80+dfsg/.pybuild/cpython3_3.11/build/Tests/test_SeqIO.py", line 367, in check_simple_write_read
	    records2 = list(SeqIO.parse(handle=handle, format=fmt))
	               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  File "/build/reproducible-path/python-biopython-1.80+dfsg/.pybuild/cpython3_3.11/build/Bio/SeqIO/Interfaces.py", line 72, in __next__
	    return next(self.records)
	           ^^^^^^^^^^^^^^^^^^
	  File "/build/reproducible-path/python-biopython-1.80+dfsg/.pybuild/cpython3_3.11/build/Bio/SeqIO/SeqXmlIO.py", line 448, in iterate
	    parser.close()
	  File "/usr/lib/python3.11/xml/sax/expatreader.py", line 240, in close
	    self.feed(b"", isFinal=True)
	  File "/usr/lib/python3.11/xml/sax/expatreader.py", line 217, in feed
	    self._parser.Parse(data, isFinal)
	  File "../Modules/pyexpat.c", line 416, in StartElement
	  File "/usr/lib/python3.11/xml/sax/expatreader.py", line 369, in start_element_ns
	    self._cont_handler.startElementNS(pair, None,
	  File "/build/reproducible-path/python-biopython-1.80+dfsg/.pybuild/cpython3_3.11/build/Bio/SeqIO/SeqXmlIO.py", line 164, in startEntryFieldElement
	    return self.startPropertyElement(attrs)
	           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  File "/build/reproducible-path/python-biopython-1.80+dfsg/.pybuild/cpython3_3.11/build/Bio/SeqIO/SeqXmlIO.py", line 340, in startPropertyElement
	    record = self.records[-1]
	             ~~~~~~~~~~~~^^^^
	IndexError: list index out of range

The issue does ring a bell though and I believe it stems from
Debian 12.12's libxml2 upgrade to address a few CVEs, as
documented in the official announcement[1].

[1]: https://lists.debian.org/debian-stable-announce/2025/09/msg00001.html

Have a nice day,  :)
-- 
  .''`.  Étienne Mollier <emollier@debian.org>
 : :' :  pgp: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
 `. `'   sent from /dev/pts/3, please excuse my verbosity
   `-

Back to linux.debian.bugs.rc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1114298: python-biopython: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --test --system=custom "--test-args= \\ Santiago Vila <sanvila@debian.org> - 2025-09-05 20:40 +0200
  Bug#1114298: python-biopython: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --test --system=custom "--test-args= \\ Étienne Mollier <emollier@debian.org> - 2025-09-13 10:20 +0200
  Processed: Re: Bug#1114298: python-biopython: FTBFS:  dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --test  --system=custom "--test-args= \\ "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-09-13 10:20 +0200
  Processed: Bug#1114298 marked as pending in python-biopython "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-09-13 12:50 +0200
  Bug#1114298: marked as pending in python-biopython Étienne Mollier <noreply@salsa.debian.org> - 2025-09-13 12:50 +0200
  Bug#1114298: marked as done (python-biopython: FTBFS:  dh_auto_test: error: pybuild --test -i python{version} -p 3.13 --test  --system=custom "--test-args= \\) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-09-14 02:10 +0200

csiph-web