ansible-navigator icon indicating copy to clipboard operation
ansible-navigator copied to clipboard

Unable to install ansible-navigator on M1 Mac due to onigurumacffi install failure

Open michaelford85 opened this issue 4 years ago • 3 comments
trafficstars

ISSUE TYPE
  • Bug Report
SUMMARY

pip install ansible-navigator fails on the M1 Mac. During the process, the installer tries to run pip install onigurumacffi, which results in the following error:

build/temp.macosx-10.14.6-arm64-3.8/_onigurumacffi.c:569:10: fatal error: 'oniguruma.h' file not found

Alternatively, I installed oniguruma with homebrew successfully, but running pip install ansible-navigator still results in the above error.

ANSIBLE-NAVIGATOR VERSION

N/A as ansible-navigator is not installed successfully.

CONFIGURATION

N/A as ansible-navigator is not installed successfully.

LOG FILE

N/A as ansible-navigator is not installed successfully.

STEPS TO REPRODUCE

On any M1 series Mac, run pip3 install ansible-navigator, or from within a pip3 virtual environment, run pip install ansible-navigator

EXPECTED RESULTS

ansible-navigator is installed successfully.

ACTUAL RESULTS

Install fails with the following error: build/temp.macosx-10.14.6-arm64-3.8/_onigurumacffi.c:569:10: fatal error: 'oniguruma.h' file not found

michaelford85 avatar Aug 06 '21 18:08 michaelford85

Certainly currently ansible-navigator installs and runs on the Apple M1 (macOS Monterey 12.0.1). Used fairly extensively (with docker due to missing features in macOS podman support) in python 3.8, 3.9, and 3.10 environments. Installed via pip

Truncated log:

❯ mkvirtualenv ansible-navigator-install-m1 -p /opt/homebrew/bin/python3.8
created virtual environment CPython3.8.12.final.0-64 in 215ms

<SNIP>

❯ type pip
pip is /Users/tok/virtual-envs/ansible-navigator-install-m1/bin/pip
❯ pip install ansible-navigator
Collecting ansible-navigator
  Using cached ansible_navigator-1.1.0-py3-none-any.whl (200 kB)

<SNIP>


WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/Users/tok/virtual-envs/ansible-navigator-install-m1/bin/python -m pip install --upgrade pip' command.

<SNIP>

❯ ansible-navigator --version --container-engine docker
ansible-navigator 1.1.0

tonykay avatar Oct 23 '21 17:10 tonykay

@tonykay Thanks for that :)

Did you have to do anything special to get the python dependency onigurumacffi installed? Or did it just get pulled down without issues when ansible-navigator was pip installed?

cidrblock avatar Dec 01 '21 13:12 cidrblock

I am still waiting for my M1 to arrive but I will likely work on that once I will be affected by it.

ssbarnea avatar Dec 07 '21 11:12 ssbarnea