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

Launchpad Bug Tracker 2127898 at bugs.launchpad.net
Wed Oct 22 23:53:12 UTC 2025


This bug was fixed in the package python3.14 - 3.14.0-4

---------------
python3.14 (3.14.0-4) unstable; urgency=medium

  * Update min-tempfile patch for 3.14 (LP: #2127898).
  * Remove an unnecessary hunk from min-ntpath-import.diff.
  * Reorganize -minimal patches consistently by missing module name.
  * Patch: Shim gettext imports in getopt and optparse. (LP: #2127899)
  * Patch: Shim shutil import in zipfile. (LP: #2127900)
  * Use Debian's default LLVM version.
    - Patch: Allow specifying the LLVM version.

 -- Stefano Rivera <stefanor at debian.org>  Tue, 21 Oct 2025 13:23:27
+0200

** Changed in: python3.14 (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:
  New
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