[Bug 2127899] Re: Cannot import optparse or getopt with only python3.14-minimal installed

Launchpad Bug Tracker 2127899 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.14 in Ubuntu.
https://bugs.launchpad.net/bugs/2127899

Title:
  Cannot import optparse or getopt with only python3.14-minimal
  installed

Status in python3.14 package in Ubuntu:
  Fix Released

Bug description:
  This is similar to
  https://bugs.launchpad.net/ubuntu/+source/python3.14/+bug/2127898

  optparse in libpython3.13-minimal wraps the import of gettext in a
  try/catch, but this seems to be missing from libpython3.14-minimal.
  This causes an import error when importing optparse if gettext isn't
  available. The same appears to be true for getopt.

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




More information about the foundations-bugs mailing list