#1149263 sqlobject: FTBFS against python 3.15rc2 ('SourceFileLoader' object has no attribute 'load_module')

Package:
src:sqlobject
Source:
src:sqlobject
Submitter:
Margarita Manterola
Date:
2026-09-29 13:37:02 UTC
Severity:
normal
Tags:
#1149263#5
Date:
2026-09-28 20:53:46 UTC
From:
To:
Hi!

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

 From the log, the error seems to be:

base_name = 'test_compat', module_name = 'sqlobject.tests.test_compat'
filename =
'/build/reproducible-path/sqlobject-3.13.1+dfsg/sqlobject/tests/test_compat.py'

     def load_module_from_file(base_name, module_name, filename):
         specs = importlib.util.spec_from_file_location(module_name,
filename)
         loader = specs.loader
         if hasattr(loader, 'create_module'):
             module = loader.create_module(specs)
         else:
             module = None
         if module is None:

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