[Bug 2127898] Re: Cannot import tempfile with only python3.14-minimal installed

Launchpad Bug Tracker 2127898 at bugs.launchpad.net
Wed Dec 10 17:56:24 UTC 2025


This bug was fixed in the package python3.13 - 3.13.11-1

---------------
python3.13 (3.13.11-1) unstable; urgency=medium

  * Python 3.13.11.
  * Fix the tempfile module in python3.13-minimal (min-tempfile.diff).
    (LP: #2127898)
  * Build with -O1 on m68k. Closes: #1121974

 -- Stefano Rivera <stefanor at debian.org>  Sat, 06 Dec 2025 09:15:20
-0400

** Changed in: python3.13 (Ubuntu)
       Status: New => Fix Released

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

Title:
  Cannot import tempfile with only python3.14-minimal installed

Status in python3.13 package in Ubuntu:
  Fix Released
Status in python3.14 package in Ubuntu:
  Fix Released

Bug description:
  When python3.14-minimal is installed (but not python3.14-stdlib),
  tempfile cannot be imported.

  This looks like a debianization bug that comes from the fact that
  upstream python switched from `import os` to `import os as _os`. As a
  result, use of `os` from a Debian patch to add rmtree implementations
  fails.

  This is not noticeable when python3.14-stdlib is installed, as
  `shutil` is available (so the relevant branch never gets hit).

  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: libpython3.14-minimal 3.14.0-1
  ProcVersionSignature: Ubuntu 6.17.0-5.5-generic 6.17.0-rc7
  Uname: Linux 6.17.0-5-generic x86_64
  NonfreeKernelModules: zfs
  ApportVersion: 2.33.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Wed Oct 15 01:03:35 2025
  InstallationDate: Installed on 2025-01-15 (273 days ago)
  InstallationMedia: Kubuntu 25.04 "Plucky Puffin" - Daily amd64 (20250114)
  SourcePackage: python3.14
  UpgradeStatus: Upgraded to questing on 2025-05-16 (151 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.13/+bug/2127898/+subscriptions




More information about the foundations-bugs mailing list