[From nobody Sun May 10 16:11:06 2026
Received: (at submit) by bugs.debian.org; 3 May 2026 09:50:02 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-110.5 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
 FROMDEVELOPER,FVGT_m_MULTI_ODD,MD5_SHA1_SUM,SPF_HELO_NONE,SPF_PASS,
 UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 60; hammy, 150; neutral, 65; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;aurel32@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:41478)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;aurel32@debian.org&gt;) id 1wJTSc-0044Wt-2T
 for submit@bugs.debian.org; Sun, 03 May 2026 09:50:02 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Date:Message-ID:Subject:To:From:
 Content-Transfer-Encoding:MIME-Version:Content-Type:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=HNp37Uo3iOQ22HDP2pmRqMe7oKznCCMF8ONUxKa8OJ0=; b=iHddl8vjzozSASP7sFsi4x+8A5
 RxOnueMye04qpYYvDT9S6Zdmh5kYkO/0+vHE18I3JGtrgNvQOtQn6gtz5It4iSrGNuwkUaxASsnGN
 i8eQupkPXU2YP2t3K1PRcpc9Ji5yORGnjsPoC+EWpTTTGU7daccuPanLZrOQpBmp6ctXxtljBT4R7
 g7Ut/J/igLr1GTW5ilRSH6euFt5l9Ek2upi3AhNhqoRfo+iRGlfse3uy94Te3VFklBaOkCGT+r08S
 ZTpPG3cf76nh6bVGXkxW+F3muFlg6NHtWfGw2OifL4KcuihS/IRZ8RO2/9fKG6ulsUqjkOeFLL55M
 Mm6DfVXQ==;
Received: from authenticated user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;aurel32@debian.org&gt;) id 1wJTSa-001B9F-22
 for submit@bugs.debian.org; Sun, 03 May 2026 09:50:01 +0000
Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2)
 (envelope-from &lt;aurel32@debian.org&gt;) id 1wJTSZ-00000003CPn-0u52;
 Sun, 03 May 2026 11:49:59 +0200
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Aurelien Jarno &lt;aurel32@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: python-fitsio: testsuite fails with cfitsio 4.6.4
Message-ID: &lt;177780179844.3771479.14357232473561960420.reportbug@ohm.local&gt;
X-Mailer: reportbug 13.2.0
Date: Sun, 03 May 2026 11:49:58 +0200
X-Debian-User: aurel32
Delivered-To: submit@bugs.debian.org

Source: python-fitsio
Version: 1.3.0+ds-1
Severity: serious
Tags: ftbfs fixed-upstream patch
Justification: fails to build from source (but built successfully in the past)

Hi,

Following the upload of cfitsio 4.6.4 in the archive, the python-fitsio
testsuite fails, causing the package to FTBFS and to fail its
autopkgtest [1]:

 36s =================================== FAILURES ===================================
 36s _______________________ test_compression_diskfile_kwargs _______________________
 36s
 36s     def test_compression_diskfile_kwargs():
 36s         with tempfile.TemporaryDirectory() as tmpdir:
 36s             fn = os.path.join(tmpdir, 'test.fits')
 36s
 36s             img = np.ones((20, 20))
 36s             with fitsio.FITS(fn, 'rw', clobber=True) as fits:
 36s                 fits.write(
 36s                     img,
 36s                     compress='RICE',
 36s                     tile_dims=(10, 5),
 36s                     qlevel=7.0,
 36s                     qmethod='SUBTRACTIVE_DITHER_2',
 36s                     dither_seed=42,
 36s                 )
 36s             with fitsio.FITS(fn) as fits:
 36s                 assert len(fits) == 2
 36s             hdr = fitsio.read_header(fn, ext=1)
 36s             for key, val in [
 36s                 ('ZTILE1', 5),
 36s                 ('ZTILE2', 10),
 36s                 ('ZQUANTIZ', 'SUBTRACTIVE_DITHER_2'),
 36s                 ('ZDITHER0', 42),
 36s                 ('ZCMPTYPE', 'RICE_ONE'),
 36s             ]:
 36s &gt;               assert hdr[key] == val
 36s E               AssertionError: assert 'RICE_1' == 'RICE_ONE'
 36s E
 36s E                 - RICE_ONE
 36s E                 + RICE_1
 36s
 36s /usr/lib/python3/dist-packages/fitsio/tests/test_image_compression_defaults.py:42: AssertionError
 36s =========================== short test summary info ============================
 36s FAILED tests/test_image_compression_defaults.py::test_compression_diskfile_kwargs
 36s =========== 1 failed, 1859 passed, 904 skipped, 113 xfailed in 5.64s ===========
 37s autopkgtest [06:51:39]: test command1: -----------------------]
 37s autopkgtest [06:51:39]: test command1:  - - - - - - - - - - results - - - - - - - - - -
 37s command1             FAIL non-zero exit status 1
 37s autopkgtest [06:51:39]: @@@@@@@@@@@@@@@@@@@@ summary
 37s command1             FAIL non-zero exit status 1

In cfitsio 4.6.4, the ZCMPTYPE header returns RICE_1 instead of
RICE_ONE [2]. A patch has been merged upstream to fix the issue [3].

Regards
Aurelien

[1] https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-fitsio/70776186/log.gz
[2] https://github.com/HEASARC/cfitsio/commit/7d854ef29a4c0043ad4455f52657a593bd31476d
[3] https://github.com/esheldon/fitsio/commit/22eaef48e4b9f2a490f5e21514cc359b5948ce9a
]