Public bug reported:

python-kaptan 0.6.0-2 fails to build in tenacious (amd64, build
33937329): test_py_file_handler and test_py_file_away_handler fail under
python3.15 with "AttributeError: 'SourceFileLoader' object has no
attribute 'load_module'" (kaptan/handlers/pyfile_handler.py:45).

Fix: use spec_from_loader / module_from_spec / exec_module instead.
Upstream is gone, so the fix is carried as a Debian/Ubuntu patch.

See also Debian bug #1149335.

** Affects: python-kaptan (Ubuntu)
     Importance: Undecided
     Assignee: Matthieu Clemenceau (mclemenceau)
         Status: In Progress

** Affects: python-kaptan (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: ftbfs

** Changed in: python-kaptan (Ubuntu)
     Assignee: (unassigned) => Matthieu Clemenceau (mclemenceau)

** Changed in: python-kaptan (Ubuntu)
       Status: New => In Progress

** Bug watch added: Debian Bug tracker #1149335
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1149335

** Also affects: python-kaptan (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1149335
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175766

Title:
  python-kaptan: FTBFS: SourceFileLoader.load_module() removed in Python
  3.15

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-kaptan/+bug/2175766/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to