FS#72087 - [ansible] ansible --version returns: ImportError: cannot import name 'initialize_locale' from 'ansib
Attached to Project:
Community Packages
Opened by Damian Nowak (Nowaker) - Friday, 10 September 2021, 01:44 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Saturday, 11 September 2021, 03:44 GMT
Opened by Damian Nowak (Nowaker) - Friday, 10 September 2021, 01:44 GMT
Last edited by Chih-Hsuan Yen (yan12125) - Saturday, 11 September 2021, 03:44 GMT
|
Details
Related to:
- https://bugs.archlinux.org/task/70749 - https://bugs.archlinux.org/task/70750 Because Arch Linux bugtracker doesn't allow comments on closed tickets, I'm creating a new ticket instead: If you're encountering this: ``` ImportError: cannot import name 'initialize_locale' from 'ansible.utils.display' (/home/nowaker/.local/lib/python3.9/site-packages/ansible/utils/display.py) ``` Do: ``` sudo pacman -R ansible export PATH="$HOME/.local/bin/:$PATH" pip install ansible ansible --version ``` In short: don't use Arch-managed Ansible. You'll only encounter problems. Ansible is better used directly from Pip. |
This task depends upon
Closed by Chih-Hsuan Yen (yan12125)
Saturday, 11 September 2021, 03:44 GMT
Reason for closing: Not a bug
Saturday, 11 September 2021, 03:44 GMT
Reason for closing: Not a bug
The error is raising from stuff in your home folder, my official ansible package from archlinux does not have this problem.
Please stop creating duplicate bug reports.