Bug 2424574 - 389-ds-base fails to build with Python 3.15: AttributeError: 'CustomHelpFormatter' object has no attribute '_format_actions_usage'
Summary: 389-ds-base fails to build with Python 3.15: AttributeError: 'CustomHelpForma...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-ds-base
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
Assignee: mreynolds
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-12-23 11:37 UTC by Karolina Surma
Modified: 2026-02-26 01:08 UTC (History)
9 users (show)

Fixed In Version: 389-ds-base-3.1.4-7.fc43
Clone Of:
Environment:
Last Closed: 2026-02-26 01:08:43 UTC
Type: Bug
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 7184 0 None closed argparse.HelpFormatter _format_actions_usage() is deprecated 2026-01-26 20:17:34 UTC
Red Hat Issue Tracker FC-2853 0 None None None 2025-12-23 11:37:37 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.