#1149833 python-pybedtools: autopkgtest regression

#1149833#5
Date:
2026-10-03 14:06:08 UTC
From:
To:
https://tracker.debian.org/pkg/python-pybedtools

Migration status for python-pybedtools (0.10.0-6 to 0.12.1-1): BLOCKED: Rejected/violates migration policy/introduces a regression
Issues preventing migration:
∙ ∙ Autopkgtest for python-pybedtools/0.12.1-1: amd64: Regression ♻ (reference ♻), arm64: Regression ♻ (reference ♻), armhf: Regression ♻ (reference ♻), i386: Regression ♻ (reference ♻), ppc64el: Regression ♻ (reference ♻)


...
117s =================================== FAILURES ===================================
117s ________________________________ test_tabix_csi ________________________________
117s
117s     def test_tabix_csi():
117s         for idx_type in ("tbi", "csi"):
117s             try:
117s                 a = pybedtools.example_bedtool("a.bed")
117s >               t = a.tabix(force=True, use_csi=True if idx_type == "csi" else False)
117s                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117s
117s /usr/lib/python3/dist-packages/pybedtools/test/test_1.py:135:
117s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
117s /usr/lib/python3/dist-packages/pybedtools/bedtool.py:845: in tabix
117s     fn = self.bgzip(in_place=in_place, force=force, is_sorted=is_sorted)
117s          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117s /usr/lib/python3/dist-packages/pybedtools/bedtool.py:908: in bgzip
117s     pysam.tabix_compress(fn, outfn, force=force)
117s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
117s
117s >   ???
117s E   OSError: could not open '/usr/lib/python3/dist-packages/pybedtools/test/data/a.bed.gz' for writing
117s
117s pysam/libctabix.pyx:843: OSError
117s
117s During handling of the above exception, another exception occurred:
117s
117s     def test_tabix_csi():
117s         for idx_type in ("tbi", "csi"):
117s             try:
117s                 a = pybedtools.example_bedtool("a.bed")
117s                 t = a.tabix(force=True, use_csi=True if idx_type == "csi" else False)
117s                 assert t._tabixed()
117s                 results = t.tabix_intervals("chr1:99-200")
117s                 results = str(results)
117s                 print(results)
117s                 assert results == fix(
117s                     """
117s                 chr1	1	100	feature1	0	+
117s                 chr1	100	200	feature2	0	+
117s                 chr1	150	500	feature3	0	-"""
117s                 )
117s
117s                 assert str(t.tabix_intervals(a[2])) == fix(
117s                     """
117s                 chr1	100	200	feature2	0	+
117s                 chr1	150	500	feature3	0	-"""
117s                 )
117s
117s             finally:
117s                 # clean up
117s                 fns = [
117s                     pybedtools.example_filename("a.bed.gz"),
117s >                   pybedtools.example_filename("a.bed.gz." + idx_type),
117s                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117s                 ]
117s
117s /usr/lib/python3/dist-packages/pybedtools/test/test_1.py:157:
117s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
117s
117s fn = '/usr/lib/python3/dist-packages/pybedtools/test/data/a.bed.gz.tbi'
117s
117s     def example_filename(fn):
117s         """
117s         Return a bed file from the pybedtools examples directory.  Use
117s         func:`list_example_files` to see a list of files that are included.
117s         """
117s         fn = os.path.join(data_dir(), fn)
117s         if not os.path.exists(fn):
117s             msg = "%s does not exist" % fn
117s >           raise FileNotFoundError(msg)
117s E           FileNotFoundError: /usr/lib/python3/dist-packages/pybedtools/test/data/a.bed.gz.tbi does not exist
117s
117s /usr/lib/python3/dist-packages/pybedtools/filenames.py:26: FileNotFoundError
117s ____________________________ test_tabix_contigs_csi ____________________________
117s
117s     def test_tabix_contigs_csi():
117s         a = pybedtools.example_bedtool("a.bed")
117s >       a = a.tabix(force=True, use_csi=True)
117s             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117s
117s /usr/lib/python3/dist-packages/pybedtools/test/test_1.py:197:
117s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
117s /usr/lib/python3/dist-packages/pybedtools/bedtool.py:845: in tabix
117s     fn = self.bgzip(in_place=in_place, force=force, is_sorted=is_sorted)
117s          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117s /usr/lib/python3/dist-packages/pybedtools/bedtool.py:908: in bgzip
117s     pysam.tabix_compress(fn, outfn, force=force)
117s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
117s
117s >   ???
117s E   OSError: could not open '/usr/lib/python3/dist-packages/pybedtools/test/data/a.bed.gz' for writing
117s
117s pysam/libctabix.pyx:843: OSError
117s =========================== short test summary info ============================
117s FAILED test/test_1.py::test_tabix_csi - FileNotFoundError: /usr/lib/python3/d...
117s FAILED test/test_1.py::test_tabix_contigs_csi - OSError: could not open '/usr...
117s =========== 2 failed, 507 passed, 2 deselected, 3 xfailed in 10.74s ============
118s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.2PZ4Fh/autopkgtest_tmp/build; python3.14 -m pytest -k "not test_chromsizes" --pyargs pybedtools
118s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p 3.14 --parallel= returned exit code 13
118s make: *** [/tmp/zZm58GjnHe/run:4: pybuild-autopkgtest] Error 25
118s pybuild-autopkgtest: error: /tmp/zZm58GjnHe/run pybuild-autopkgtest returned exit code 2
118s autopkgtest [08:54:10]: test pybuild-autopkgtest: -----------------------]
118s autopkgtest [08:54:10]: test pybuild-autopkgtest:  - - - - - - - - - - results - - - - - - - - - -
118s pybuild-autopkgtest  FAIL non-zero exit status 25
...

#1149833#8
Date:
2026-10-17 17:34:09 UTC
From:
To:
Hello,

Bug #1149833 in python-pybedtools reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/med-team/python-pybedtools/-/commit/bfab7011bd321590b921ea2ef12cb038ad9875fe
------------------------------------------------------------------------
skip-tests-in-autopkgtest-context.patch: new.

Skip some tests in autopkgtest context, because otherwise they attempt
to write into the test data directory provided by the package, which
is read-only.

Closes: #1149833
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1149833

#1149833#15
Date:
2026-10-17 18:54:15 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-pybedtools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1149833@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Étienne Mollier <emollier@debian.org> (supplier of updated python-pybedtools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 17 Oct 2026 19:28:36 +0200
Source: python-pybedtools
Architecture: source
Version: 0.12.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Étienne Mollier <emollier@debian.org>
Closes: 1149833
Changes:
 python-pybedtools (0.12.1-2) unstable; urgency=medium
 .
   * Team upload.
   * skip-tests-in-autopkgtest-context.patch: new.
     Skip some tests in autopkgtest context, because otherwise they attempt
     to write into the test data directory provided by the package, which
     is read-only. (Closes: #1149833)
   * d/copyright: remove the unused paragraph about plain GPL-2.
   * d/control: provide an extended description to python-pybedtools-doc.
   * fix-privacy-breaches.patch: new: remove linked images.
   * d/python3-pybedtools.lintian-overrides: flag false positives.
   * define_filenotfounderror_python2.patch: normalise the timestamp.
Checksums-Sha1:
 a84b700ba1cc29c334eced913b685b471130997f 2764 python-pybedtools_0.12.1-2.dsc
 bd279a5a586f15a604bdbfec58a528457c8f2842 32088 python-pybedtools_0.12.1-2.debian.tar.xz
Checksums-Sha256:
 8855f7e22249106baa6bac1ffe94a82b33ca7cec73c0f9a802e7acd0d92ee02f 2764 python-pybedtools_0.12.1-2.dsc
 434ed30ad7b99e394bfd295baa3eca9de521f245d2bbdda52db93a2957be9a02 32088 python-pybedtools_0.12.1-2.debian.tar.xz
Files:
 d31d14a3a6cef2e5d55d50c9c59e5aae 2764 python optional python-pybedtools_0.12.1-2.dsc
 a8dc056bee5aeaecfe93ac02929670eb 32088 python optional python-pybedtools_0.12.1-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmrTtpsUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdp4aw/9Fcl9YbjkEwUR5Je2mWlyhCzzhFZY
wiLGIFl7Z2yCQZ/Bwxy11eggVR3gJvnohgYg/F38NhQeLDCDHQo03MJndsn7T1Fk
PArJlBa3Q8ZKoftqaLVGHp9pL8gShlNx9n3r/RpVPtfTTgdeML15sbClZFY6f9Ur
B5MNDdjTmHH/FQMKmZEH/MTcA+oWszsldpKD55DFKudxYxdKdbB5CGNd1mnunSS+
kVsiD/2sY/Ln9UBBvt/46Q2IxBueGp1DSFOJ25hy//24O1OZNsjYV2URdmxIE41a
mG2r8MselBW6e/K4GpcbXaAFB33k/MyvVbmBo8fAjkq/0nV1VwDN4WghFwjJeNnU
nBcCD/sMMVgMqlIeGGZqIa0IwQpqOPPoAAw/xedSf6nKFTO4Qsg0TuEOu6aP0nLx
oLEMsDLvuH4wcuqmbJJufdkIhQxEWjzPk3ahtXc7mWnuAzBthpYfowt4bO9DJ20W
wTwakQ/kxWBKVorPdBDhcFWgiTrcECUOALIZ5FvLxTXP2u8GuE+Y3tHeJFin9Ywm
19amnh3slK1aWflW1P1sxf5BCJ0jdyytLZ0+KW+n11V5KL+YKaYJ5DaI2KG6RGdk
X88e9H0sKIhV4xFsz6mgJiUXIBxQtGLAfwPki0BxKp0hx9BOC8mygemXoYAz5nu0
3te4ki6SG7nKh14=
=N3kN
-----END PGP SIGNATURE-----