################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project 🙏 #
# https://opencollective.com/openapi_generator/donate #
################################################################################
# https://vsupalov.com/docker-shared-permissions/#set-the-docker-user-when-running-your-container
chown -R 501:20 /Users/snchoi/go/src/github.com/argoproj/argo-workflows/sdks/java/client || sudo chown -R 501:20 /Users/snchoi/go/src/github.com/argoproj/argo-workflows/sdks/java/client
# adding kubernetes-client
cd client && sed 's/<dependencies>/<dependencies><dependency><groupId>io.kubernetes<\/groupId><artifactId>client-java<\/artifactId><version>14.0.1<\/version><\/dependency>/g' pom.xml > tmp && mv tmp pom.xml
make --directory sdks/python generate
env: python: No such file or directory
Makefile:3: *** "Failed to obtain a valid version for the SDK". Stop.
make: *** [codegen] Error 2
ArgoWorkflows에서 make codegen 명령을 입력하다가, env: python: No such file or directory 에러를 만났다.
ln -s -f /usr/bin/python3 /usr/bin/python
처음에 위와같은 명령으로 해결하려고 했지만, 에러가 똑같이 발생했다.
❯ which python
/opt/homebrew/bin/python
❯ which python3
/usr/bin/python3
brew로 설치시, python이 아니라 python3가 설치된 줄 알고 which python3으로 해서 나온 경로로 해결하려했던 것이다.
ln -s "$(brew --prefix)/bin/python"{3,}
위와 같은 명령어로 입력해주니 해결되었다.
'Trouble Shooting' 카테고리의 다른 글
[Kubernetes] dial tcp 127.0.0.1:10248: connect: connection refused. (0) | 2022.07.24 |
---|