Code Monkey home page Code Monkey logo

Comments (3)

ssbarnea avatar ssbarnea commented on June 25, 2024

Please remove the cache first and also provide more information about which python interpreter is used to execute navigator.

from ansible-navigator.

cidrblock avatar cidrblock commented on June 25, 2024

This is a good find. Can you confirm the python version inside the EE? The image_introspect.py is volume mounted into the EE and run there to introspect it.

from ansible-navigator.

jasondickerson avatar jasondickerson commented on June 25, 2024

I cleared the ansible-navigatgor cache using "# rm ~/.cache/ansible-navigator/*" and tried again. I received the same result.

On Fedora 40 I am using the default python 3.12.

I have several EE's I can inspect:

quay.io/ansible/awx-ee:latest (inspection fails) (python 3.9)
ghcr.io/ansible/creator-ee:v24.2.0 (works) (python 3.12)
registry.redhat.io/ansible-automation-platform-24/ee-29-rhel8:latest (inspection fails) (python 3.8)
registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest (inspection fails) (python 3.9)
registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest (inspection fails) (python 3.9)

So it seems to depend on what python is in the EE. if the EE contains python 3.12 it works, 3.8 and 3.9 do not. Notice the OS I'm running on runs 3.12 as well.

If I downgrade to ansible-navigator==24.2.0 inspection works for all of the EE's regardless of the python version.

Python information by EE:

awx-ee:

bash-5.1$ python --version
Python 3.9.18
bash-5.1$ ls -l /usr/bin/python*
lrwxrwxrwx. 1 root root     9 Jan 26 18:40 /usr/bin/python -> ./python3
lrwxrwxrwx. 1 root root     9 Jan 26 18:30 /usr/bin/python3 -> python3.9
-rwxr-xr-x. 1 root root 15624 Jan 26 18:30 /usr/bin/python3.9
bash-5.1$ 

creator-ee:

root@creator-ee:v24.2.0: /tmp 
# python --version
Python 3.12.1
root@creator-ee:v24.2.0: /tmp 
# ls -l /usr/bin/python*
lrwxrwxrwx. 1 root root     9 Dec 18 00:00 /usr/bin/python -> ./python3
lrwxrwxrwx. 1 root root    16 Dec 18 00:00 /usr/bin/python-config -> ./python3-config
lrwxrwxrwx. 1 root root    10 Dec 18 00:00 /usr/bin/python3 -> python3.12
lrwxrwxrwx. 1 root root    17 Dec 18 00:00 /usr/bin/python3-config -> python3.12-config
-rwxr-xr-x. 1 root root 15888 Dec 18 00:00 /usr/bin/python3.12
-rwxr-xr-x. 1 root root    62 Dec 18 00:00 /usr/bin/python3.12-config
-rwxr-xr-x. 1 root root  3079 Dec 18 00:00 /usr/bin/python3.12-x86_64-config
root@creator-ee:v24.2.0: /tmp 
# 

ee-29-rhel8:

bash-4.4# python --version 
Python 3.8.17
bash-4.4# ls -al /usr/bin/python* 
lrwxrwxrwx. 1 root root   36 Apr 18  2023 /usr/bin/python -> /etc/alternatives/unversioned-python
lrwxrwxrwx. 1 root root   25 Apr 18  2023 /usr/bin/python3 -> /etc/alternatives/python3
-rwxr-xr-x. 1 root root 7776 Aug 10  2023 /usr/bin/python3.8
bash-4.4# 

ee-minimal-rhel8:

bash-4.4# python --version
Python 3.9.18
bash-4.4# ls -al /usr/bin/python*
lrwxrwxrwx. 1 root root   36 Apr 18 17:04 /usr/bin/python -> /etc/alternatives/unversioned-python
lrwxrwxrwx. 1 root root   25 Apr 18 17:04 /usr/bin/python3 -> /etc/alternatives/python3
-rwxr-xr-x. 1 root root 7768 Sep 22  2023 /usr/bin/python3.9
bash-4.4# 

ee-supported-rhel8:

bash-4.4# python --version
Python 3.9.18
bash-4.4# ls -al /usr/bin/python*
lrwxrwxrwx. 1 root root   36 Apr 18 17:04 /usr/bin/python -> /etc/alternatives/unversioned-python
lrwxrwxrwx. 1 root root   25 Apr 18 17:04 /usr/bin/python3 -> /etc/alternatives/python3
-rwxr-xr-x. 1 root root 7768 Sep 22  2023 /usr/bin/python3.9
bash-4.4# 

from ansible-navigator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.