[From nobody Fri Oct 23 16:21:05 2026
Received: (at submit) by bugs.debian.org; 29 Sep 2026 14:39:23 +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=-118.4 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,FROMDEVELOPER,HAS_PACKAGE,SPF_HELO_NONE,SPF_PASS,
 USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 69; hammy, 150; neutral, 108; 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;marga@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:36602)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;marga@debian.org&gt;) id 1xBYzL-00BW6E-0h
 for submit@bugs.debian.org; Tue, 29 Sep 2026 14:39:23 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Content-Transfer-Encoding:Content-Type
 :Message-ID:Subject:To:From:Date:MIME-Version:Reply-To:Cc:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=Z5v6CSj/gICjalRL240xu2UypLdZro2+lgRKRouI9II=; b=rDWVTha+xJaLPWr+jD/+EelSbV
 fu4Feo3woo1Ix2iZlZAwGTby245howfj5FFdKSGeQ3vVaj8r5fkHjTxJZhVdBO9pXlqHjmp3i9UJU
 EiIjQy3np7/wPZuF37VRaRAQ7MLQyF4eNxmPuY9kPmnKQikwMn/bsK8shVtBkz6kX92XulVqHpd6a
 5A9Ulgbfxr9/5MdqU0mf2SWFS0g4VljnO6ct1GCAn5josx6k3idHu2zY4FbPrmFMPc2lFbpUWE6iC
 ff6NcQ6/tUJMhs7S2t/SOT2+z3Vt2R0op0MvAeda8INdCs8L9NmdW3HT6F6alc5OrHPHqryE1mduJ
 XGSmtYLA==;
Received: from authenticated-user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;marga@debian.org&gt;) id 1xBYzJ-008TqY-0S
 for submit@bugs.debian.org; Tue, 29 Sep 2026 14:39:21 +0000
Authentication-Results: nefele.gnuservers.com.ar; dkim=none; dkim-atps=neutral
Received: from nefele.gnuservers.com.ar (localhost [127.0.0.1])
 by nefele.gnuservers.com.ar (Postfix) with ESMTPSA id DD4271B351B0
 for &lt;submit@bugs.debian.org&gt;; Tue, 29 Sep 2026 14:39:19 +0000 (UTC)
MIME-Version: 1.0
Date: Tue, 29 Sep 2026 16:39:19 +0200
From: Margarita Manterola &lt;marga@debian.org&gt;
To: submit@bugs.debian.org
Subject: pynwb: FTBFS against python 3.15rc2 ('__cached__' not found in
 expected module structure)
Message-ID: &lt;bcda4f60942062850dd2d7bb01d87363@debian.org&gt;
X-Sender: marga@debian.org
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
X-Debian-User: marga
Delivered-To: submit@bugs.debian.org

Package: src:pynwb
Version: 2.8.2-4
User: debian-python@lists.debian.org
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2 
version we found that pynwb fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856659/

 From the log, the error seems to be:

   =================================== FAILURES 
===================================
   _______________ TestImportStructure.test_outer_import_structure 
________________
   […]
           for member in expected_structure:
   &gt;           self.assertIn(member=member, container=current_structure)
   E           AssertionError: '__cached__' not found in ['BuildManager', 
'CORE_NAMESPACE', 'DataChunkIterator', 'H5DataIO', 'HDMFIO', 
'NWBContainer', 'NWBData', 'NWBDatasetSpec', 'NWBFile', 'NWBGroupSpec', 
'NWBHDF5IO', 'NWBNamespace', 'NamespaceCatalog', 'Path', 
'ProcessingModule', 'TimeSeries', 'TypeMap', '_HDF5IO', '__NS_CATALOG', 
'__TYPE_MAP', '__builtins__', '__doc__', '__file__', '__get_resources', 
'__io', '__loader__', '__name__', '__package__', '__path__', 
'__resources', '__spec__', '__version__', '_due', '_get_resources', 
'_version', 'available_namespaces', 'base', 'behavior', 'core', 
'deepcopy', 'device', 'docval', 'ecephys', 'epoch', 'file', 'get_class', 
'get_docval', 'get_loaded_type_config', 'get_manager', 
'get_nwbfile_version', 'get_type_map', 'getargs', 'h5py', 'hdmf', 
'hdmf_get_loaded_type_config', 'hdmf_load_type_config', 'hdmf_typemap', 
'hdmf_unload_type_config', 'icephys', 'image', 'io', 'legacy', 
'load_namespaces', 'load_type_config', 'misc', 'ogen', 'ophys', 'os', 
'popargs', 'register_class', 'register_map', 'resources', 'spec', 
'testing', 'unload_type_config', 'validate', 'warn']

This is very likely due to an explicit 3.15 change. From 
https://docs.python.org/3.15/whatsnew/3.15.html:

The __cached__ attribute on modules, which was deprecated since version 
3.13, is no longer set or taken into consideration by the import system 
or standard library. Use __spec__.cached instead. (Contributed by Brett 
Cannon in gh-97879.)

Setting the severity to important for now. Once Python 3.15 is released 
and later added to python3-defaults, this bug will become release 
critical.

-- 
Regards,
Marga
]