[RHEL 8.6] ansible-navigator pip install succeeds, execution fails #1625
Unanswered
nick-geovanis-gatx
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On RHEL 8.6 here's the pip3 install of ansible-navigator, apparently successful:
[ansible@pocrep01 ~]$ python3 -m pip install ansible-navigator --user
Collecting ansible-navigator
Downloading ansible_navigator-1.1.0-py3-none-any.whl (200 kB)
|████████████████████████████████| 200 kB 18.2 MB/s
Requirement already satisfied: pyyaml in /usr/lib64/python3.6/site-packages (from ansible-navigator) (3.12)
Requirement already satisfied: dataclasses in /usr/local/lib/python3.6/site-packages (from ansible-navigator) (0.8)
Requirement already satisfied: onigurumacffi<2,>=1.1.0 in /usr/local/lib64/python3.6/site-packages (from ansible-navigator) (1.1.0)
Requirement already satisfied: ansible-runner<3,>=2 in /usr/local/lib/python3.6/site-packages (from ansible-navigator) (2.3.2)
Requirement already satisfied: importlib-resources in /usr/local/lib/python3.6/site-packages (from ansible-navigator) (5.4.0)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.6/site-packages (from ansible-navigator) (3.0.3)
Requirement already satisfied: packaging in /usr/local/lib/python3.6/site-packages (from ansible-runner<3,>=2->ansible-navigator) (21.3)
Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from ansible-runner<3,>=2->ansible-navigator) (1.11.0)
Requirement already satisfied: python-daemon in /usr/local/lib/python3.6/site-packages (from ansible-runner<3,>=2->ansible-navigator) (2.3.2)
Requirement already satisfied: pexpect>=4.5 in /usr/local/lib/python3.6/site-packages (from ansible-runner<3,>=2->ansible-navigator) (4.8.0)
Requirement already satisfied: cffi>=1 in /usr/local/lib64/python3.6/site-packages (from onigurumacffi<2,>=1.1.0->ansible-navigator) (1.15.1)
Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.6/site-packages (from importlib-resources->ansible-navigator) (3.6.0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib64/python3.6/site-packages (from jinja2->ansible-navigator) (2.0.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.6/site-packages (from cffi>=1->onigurumacffi<2,>=1.1.0->ansible-navigator) (2.21)
Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.6/site-packages (from pexpect>=4.5->ansible-runner<3,>=2->ansible-navigator) (0.7.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/lib/python3.6/site-packages (from packaging->ansible-runner<3,>=2->ansible-navigator) (2.1.10)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/site-packages (from python-daemon->ansible-runner<3,>=2->ansible-navigator) (59.6.0)
Requirement already satisfied: docutils in /usr/local/lib/python3.6/site-packages (from python-daemon->ansible-runner<3,>=2->ansible-navigator) (0.18.1)
Requirement already satisfied: lockfile>=0.10 in /usr/local/lib/python3.6/site-packages (from python-daemon->ansible-runner<3,>=2->ansible-navigator) (0.12.2)
Installing collected packages: ansible-navigator
Successfully installed ansible-navigator-1.1.0
[ansible@pocrep01 ~]$
Unfortunately invocation of ansible-navigator dies like so:
[ansible@pocrep01 ~]$ ansible-navigator
Traceback (most recent call last):
File "/home/ansible/.local/bin/ansible-navigator", line 8, in
sys.exit(main())
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/cli.py", line 141, in main
return_code = run(args)
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/cli.py", line 82, in run
wrapper(ActionRunner(args=args).run)
File "/usr/lib64/python3.6/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/action_runner.py", line 59, in run
name, action = self._action_match(self._args.app)
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/app.py", line 57, in _action_match
for kegex in kegexes():
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/actions/_actions.py", line 73, in kegexes
_import_all(package)
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/actions/_actions.py", line 43, in _import_all
_import(package, action)
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/actions/_actions.py", line 33, in _import
importlib.import_module(f"{package}.{action}")
File "/usr/lib64/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/actions/collections.py", line 22, in
from ..runner.api import CommandRunner
File "/home/ansible/.local/lib/python3.6/site-packages/ansible_navigator/runner/api.py", line 17, in
from ansible_runner import Runner # type: ignore
File "/usr/local/lib/python3.6/site-packages/ansible_runner/init.py", line 3, in
from .interface import run, run_async,
File "/usr/local/lib/python3.6/site-packages/ansible_runner/interface.py", line 33, in
from ansible_runner.streaming import Transmitter, Worker, Processor
File "/usr/local/lib/python3.6/site-packages/ansible_runner/streaming.py", line 1
from future import annotations # allow newer type syntax until 3.10 is our minimum
^
SyntaxError: future feature annotations is not defined
Any advice you might have is welcome.
Beta Was this translation helpful? Give feedback.
All reactions