Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no link to pip, pip3 is OK #482

Open
marek-mikolajczyk opened this issue Nov 19, 2024 · 0 comments
Open

no link to pip, pip3 is OK #482

marek-mikolajczyk opened this issue Nov 19, 2024 · 0 comments

Comments

@marek-mikolajczyk
Copy link

Hello

I've started using ansible-dev-tools recently, and found pip3 works well, but link to pip is not present:

---
- name: Get EE info
  hosts: localhost
 
  tasks:
  - name: list ansible collections
    shell: ansible-galaxy collection list

  - name: list python packages
    shell: pip list        

Then, the playbook will fail:

TASK [list python packages] ****************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "pip list", "delta": "0:00:00.003125", "end": "2024-11-19 10:10:44.214065", "msg": "non-zero return code", "rc": 127, "start": "2024-11-19 10:10:44.210940", "stderr": "/bin/sh: line 1: pip: command not found", "stderr_lines": ["/bin/sh: line 1: pip: command not found"], "stdout": "", "stdout_lines": []}

I've added a step for building my EE:

additional_build_steps:
   append_final:
    - RUN ln -s /usr/local/bin/pip3 /usr/local/bin/pip

Is this the right way? Is it an useful finding for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant