[Python] ansible install PermissionError: Errno 1] Operation not permitted

Discussão em 'Python' iniciado por Stack, Março 4, 2025.

  1. Stack

    Stack Membro Participativo

    I just installed ansible 2.14 with python 3.12 on a offline machine. I manually put all the dependencies it needed on the redhat 8 offline machine.

    When I do a ansible --version I get this error:

    Traceback (most recent call last):

    File "/usr/bin/ansible", line 33, in ‹ modules

    sysexit(loadentry point('ansible-core==2.14,18', 'console_scripts", 'ansible')O)

    File "/usr/bin/ansible" line 25, in importlib_load_entry-point return next (matches). loadO

    File "/usr/lib64/python3. 9/import1ib/metadata. py", line 86, in load

    module = import module(match. group('module"))

    File "/usr/1ib64/python3. 9/importlib/_init_py", line 127, in import module

    return _bootstrap. _gcd_import(name[level:], package, level)

    File

    "‹frozen importlib._bootstrap>"

    , line 1030, in -ged_import

    File "«frozen importlib._bootstrap›" line 1007, in _find_and_load

    File "«frozen importlib._bootstrap›"

    line 972, in _find_and_load_unlocked

    File

    "frozen importlib._bootstrap›"

    line 228, in _call with_frames_removed

    File "‹frozen importlib._bootstrap»"

    line 1030, in

    _gcd_import

    File "«frozen importlib._bootstrap›"

    line 1007, in _find_and_load

    File "«frozen importlib._bootstrap›"

    File

    line 986, in _find_and_load_unlocked

    "«frozen importlib._bootstrap»", line 680, in _load unlocked

    I

    File

    "‹frozen importlib._bootstrap_external>", line 850, in exec module

    File "«frozen importlib._bootstrap>", line 228, in _call with_frames renoved

    File "/usr/lib/python3.9/site-packages/ansible/cli/_init_py", line 102, in ‹module from ansible. parsing. dataloader import DataLoader

    File "/usr/lib/python3.9/site-packages/ansible/parsing/dataloader.py", line 17, in a from ansible. module utils.basic import is_executable

    File "/usr/lib/python3.9/site-packages/ansible/module utils/basic.py", line 71, in am

    has journal = hasattr (journal, 'sendv') and systemd_daemon. bootedO

    PermissionError: Errno 1] Operation not permitted


    I am stuck on why it will not show the version of ansible.

    There is nothing in the /usr/bin/ansible folder

    Continue reading...

Compartilhe esta Página