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

Merged
merged 1 commit into from May 22, 2024

Conversation

hb9hnt
Copy link
Contributor

@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

@TheRealHaoLiu
Copy link
Member

CI failure is due to podman 5 upgrade, recently fixed that. I'm gonna rebase your PR to pickup the CI fix

This will be removed in Python 3.12 and will break human output unless fixed.
@TheRealHaoLiu
Copy link
Member

@hb9hnt thanks for the contribution! approved and enabled auto-merge PR will merge once CI passes

@TheRealHaoLiu TheRealHaoLiu merged commit adf930e into ansible:devel May 22, 2024
20 checks passed
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

2 participants