book-of-kubernetes / examples

Examples for The Book of Kubernetes
MIT License
146 stars 71 forks source link

Setup Missing File #24

Open gardnerapp opened 1 year ago

gardnerapp commented 1 year ago

When I follow the ReadME in the Setup folder and run pip3 install -r collections/ansible_collections/amazon/aws/requirements.txt I get this error: ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'collections/ansible_collections/amazon/aws/requirements.txt' Not sure what collections are missing or if I could find them anywhere else.

matthoff11 commented 1 year ago

were you in the right directory when you issued the command?

gardnerapp commented 1 year ago

yes, the files were not there when I cloned the repo

matthoff11 commented 1 year ago

are they there for you now?

CheriseCodes commented 1 year ago

Can you run pwd to display your current working directory? For me, I had to cd into the setup folder first for it to work

jeff-tillinghast commented 9 months ago

I am having the same issue. Confirmed that I am in setup, but the folder collections/ansible_collections is empty.

jeff-tillinghast commented 9 months ago

@gardnerapp - Don't know if this is your cause, but I misunderstood the location of the file trying to run. I changed the directory in the command to the directory where my local Ansible collections were stored (run ansible-galaxy collection list to see the location of your collections folder), and then ran against that. So my full command ended up being pip3 install -r /opt/homebrew/lib/python3.11/site-packages/ansible_collections/amazon/aws/requirements.txt.

Probably indicates that my $PATH isn't set up correctly.