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
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Amin Vakil (aminvakil) - Friday, 10 September 2021, 13:18 GMT
As you have been told stuff in your home directory is your responsibility.

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.

Loading...