#1102620 construct: Fix the import module failure issue during autopkgtest

Package:
construct
Source:
construct
Submitter:
Chi, Zhixiong
Date:
2025-08-25 05:21:02 UTC
Severity:
normal
Tags:
#1102620#5
Date:
2025-04-11 06:18:29 UTC
From:
To:
Dear Maintainer,

I'd like to submit a patch for the construct package that fixes the
failure couldn't import the local modules. See the failure in
https://ci.debian.net/packages/c/construct/unstable/amd64/57941369/

I can reproduce this case with the following command in the unstable
distro docker image:

   $ autopkgtest . -- null

My patch updates debian/tests/control to add the setting 'PYTHONPATH=.'
in the Test-Command, ensuring the source directory is included in the
module search path, so that the issue of ModuleNotFoundError could be gone.

Thank you for considering this patch attached

Zhixiong

#1102620#10
Date:
2025-08-21 14:43:39 UTC
From:
To:
Hi,

The release team has announced [1] that failing autopkgtest on amd64 and
arm64 are considered RC in testing.

Paul

[1] https://lists.debian.org/debian-devel-announce/2019/07/msg00002.html

#1102620#17
Date:
2025-08-25 05:18:48 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
construct, 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 1102620@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bo YU <vimer@debian.org> (supplier of updated construct 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: Mon, 25 Aug 2025 11:27:01 +0800
Source: construct
Architecture: source
Version: 2.10.68+dfsg1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Bo YU <vimer@debian.org>
Closes: 1102620
Changes:
 construct (2.10.68+dfsg1-3) unstable; urgency=medium
 .
   * Team upload.
 .
   [Zhixiong Chi]
   * Set PYTHONPATH to fix test modules imports in autopkgtest. thanks for
     "Chi, Zhixiong" <zhixiong.chi@windriver.com> (Closes: #1102620)
Checksums-Sha1:
 632a8108e6c98cd27850ee56738cd43b379d61d6 2284 construct_2.10.68+dfsg1-3.dsc
 9923dfcae4b1e5f0d70e7b6bd78fc77daef59af2 4420 construct_2.10.68+dfsg1-3.debian.tar.xz
 b7463a59dee358429824ebe40990acddc87dfb15 7600 construct_2.10.68+dfsg1-3_amd64.buildinfo
Checksums-Sha256:
 10d767026176d8a2a27cfc3d75d8de60ecadb5165682f1c42233ff0cd7a9ff16 2284 construct_2.10.68+dfsg1-3.dsc
 08d9a63fb1f183b9b9014418d9a8de1aa5bd8983481305d5c6d75636684fa138 4420 construct_2.10.68+dfsg1-3.debian.tar.xz
 1b16494d281576e1992e5187aab9a3a6356d489b080037aae5cafddaaa6af702 7600 construct_2.10.68+dfsg1-3_amd64.buildinfo
Files:
 cf6061c121f0b704b3e9c90ffbf30dae 2284 python optional construct_2.10.68+dfsg1-3.dsc
 0f509f8fcad988af92ed5a33deeb76c7 4420 python optional construct_2.10.68+dfsg1-3.debian.tar.xz
 ce12948702daf46ab2d343d7b7856fc7 7600 python optional construct_2.10.68+dfsg1-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEIcmhjYVTlmab0tjp+RVP3hQ+S68FAmir73sACgkQ+RVP3hQ+
S6/AmRAAn2CopbxxU3UHRSXuBD2G8fDiXGVziKDht6CxqxHALCqeuajNCo1bWPqf
by0t+rfTppvRZEz3HykVCY5IC1alAFHHbE0cC1zDRP+hz/ecE4XltD0KKCxacTXJ
lSFfpcbk4E0F1+aC2ZUjykyrvpiXPD6KhUD+9b255iA2aJEZ9KjaWlMwQmFuXNcr
FaRuvUBiv0mimxr9W/5grtz0lfSlZgYlWnMtDTraNsdBld3iI1ipdyrk3Xuh64ZB
SKcpmfZYRVw13AobGrXko+6KEEJsT6OrIYApH4ipPg9R1l1SfDFq3BSO1B7ESW/T
PmzBeYsewkLFH/UWad5oaBwtlwZ0d5t2kQaDoNMiC/S/9gDuXFgkrnRdgNQ/lDEP
2+puZB8GM4oYFg/UDP3petp1yUMjfxnoBtnLGfty+AIth/zBhT5CeI026wclKvQp
ZJwvklge7vZpGcb2GOVq3wsgTRbqJ6BY6Wdp2XQz0ErcANCkC7nIjJ4AHK57A/za
Wu+W6+EUtogy5DCWKXSQje2TGBjGpBDXlGCfjgjiX9ASXdRyxusDHF2n4qQ1Ng/7
1w95OdxVzazAQ8/ub74hzZ3M9hKBG2t4462QrDzWpsKyMd6ySO1bdGs+Z05c587E
uLkO402glBkEqD2W+zKYQKKzGr50ztF0eLa/uolxKe8pBK77jFs=
=g1Jo
-----END PGP SIGNATURE-----