Bug 2424574

Summary: 389-ds-base fails to build with Python 3.15: AttributeError: 'CustomHelpFormatter' object has no attribute '_format_actions_usage'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: rawhideCC: abokovoy, atikhono, jachapma, ksurma, mhroncok, mreynolds, spichugi, tbordaz, vashirov
Target Milestone: ---Flags: fedora-admin-xmlrpc: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-3.1.4-7.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-02-26 01:08:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2412434    

Description Karolina Surma 2025-12-23 11:37:13 UTC
389-ds-base fails to build with Python 3.15.0a3.

    File "cli/dsconf", line 72, in <module>
      cli_backend.create_parser(subparsers)
      ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
    File "/builddir/build/BUILD/389-ds-base-3.2.0-build/389-ds-base-3.2.0/src/lib389/build/lib/lib389/cli_conf/backend.py", line 895, in create_parser
      subcommands = backend_parser.add_subparsers(help="action")
    File "/usr/lib64/python3.15/argparse.py", line 2019, in add_subparsers
      kwargs['prog'] = formatter.format_help().strip()
                       ~~~~~~~~~~~~~~~~~~~~~^^
    File "/usr/lib64/python3.15/argparse.py", line 305, in format_help
      help = self._root_section.format_help()
    File "/usr/lib64/python3.15/argparse.py", line 230, in format_help
      item_help = join([func(*args) for func, args in self.items])
                        ~~~~^^^^^^^
    File "/builddir/build/BUILD/389-ds-base-3.2.0-build/389-ds-base-3.2.0/src/lib389/build/lib/lib389/cli_base/__init__.py", line 416, in _format_usage
      formatted_options = self._format_actions_usage(parent_arguments, [])
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'CustomHelpFormatter' object has no attribute '_format_actions_usage'

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09935186-389-ds-base/

For all our attempts to build 389-ds-base with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/389-ds-base/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 mreynolds 2026-01-26 18:50:56 UTC
Fixed upstream in 389-ds-base-3.2 ---> 389-ds-base-2.8

Comment 2 Fedora Update System 2026-02-13 18:14:36 UTC
FEDORA-2026-2241482fa6 (389-ds-base-3.1.4-7.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-2241482fa6

Comment 3 Fedora Update System 2026-02-13 19:25:06 UTC
FEDORA-2026-27ce708600 (389-ds-base-3.1.4-7.fc43, python3.14-3.14.3-1.fc43, and 1 more) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-27ce708600

Comment 4 Fedora Update System 2026-02-14 01:29:02 UTC
FEDORA-2026-27ce708600 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-27ce708600`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-27ce708600

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-02-26 01:08:43 UTC
FEDORA-2026-27ce708600 (389-ds-base-3.1.4-7.fc43, python3.14-3.14.3-1.fc43, and 1 more) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.