Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awxkit: replace deprecated locale.format() with locale.format_string() to fix human output on Python 3.12 #15170

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

hb9hnt
Copy link

@hb9hnt hb9hnt commented May 6, 2024

This will be removed in Python 3.12 and will break human output unless fixed.

SUMMARY

In Python 3.12 the deprecated function locale.formt was removed as mentioned here: python/cpython#94226
This leads to an error on Python 3.12

$ awx jobs list                                                                                     
module 'locale' has no attribute 'format

as can be tested on Fedora >=39 or any machine running Python 3.12.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • CLI
AWX VERSION

awxcli:

$ awx --version
24.3.1

This will be removed in Python 3.12 and will break human output unless fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant