Closed heathdbrown closed 1 year ago
When testing out the ansible-console I ran into the following issues:
Traceback (most recent call last):
File "/home/BrownHD/.local/share/virtualenvs/thousandeyes-agent-config-O4qroPUg/bin/ansible-console", line 104, in <module>
mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
File "/home/BrownHD/.local/share/virtualenvs/thousandeyes-agent-config-O4qroPUg/lib/python3.8/site-packages/ansible/cli/console.py", line 12, in <module>
import readline
File "/home/BrownHD/.local/share/virtualenvs/thousandeyes-agent-config-O4qroPUg/lib/python3.8/site-packages/readline.py", line 6, in <module>
from pyreadline.rlmain import Readline
File "/home/BrownHD/.local/share/virtualenvs/thousandeyes-agent-config-O4qroPUg/lib/python3.8/site-packages/pyreadline/__init__.py", line 12, in <module>
from . import logger, clipboard, lineeditor, modes, console
File "/home/BrownHD/.local/share/virtualenvs/thousandeyes-agent-config-O4qroPUg/lib/python3.8/site-packages/pyreadline/clipboard/__init__.py", line 13, in <module>
from .win32_clipboard import GetClipboardText, SetClipboardText
File "/home/BrownHD/.local/share/virtualenvs/thousandeyes-agent-config-O4qroPUg/lib/python3.8/site-packages/pyreadline/clipboard/win32_clipboard.py", line 39, in <module>
from pyreadline.keysyms.winconstants import CF_UNICODETEXT, GHND
File "/home/BrownHD/.local/share/virtualenvs/thousandeyes-agent-config-O4qroPUg/lib/python3.8/site-packages/pyreadline/keysyms/__init__.py", line 23, in <module>
raise ImportError("Could not import keysym for local pythonversion", x)
NameError: name 'x' is not defined
$pip list | grep ansible
ansible 4.4.0
ansible-core 2.11.4
$python --version
Python 3.8.10
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.
This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.
Read an article that covered some items on performing debugging tasks in Ansible.