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: POST
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-01-26 20:17 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
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


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