Broken Python with Poetry & pipX
Everyhting started with an error as any good story does.
zsh: ./poetry: bad interpreter:
/Users/giraycoskun/.local/pipx/venvs/poetry/bin/python: no such file or directory
I have a cron job created via
Well recently this updated python 3.12.0 to 3.12.1 and poetry broke. Reason is below
pwd
/Users/giraycoskun/.local/pipx/venvs/poetry/bin
ls -la
lrwxr-xr-x 1 giraycoskun staff 10 Nov 14 22:13 python -> python3.12
lrwxr-xr-x 1 giraycoskun staff 10 Nov 14 22:13 python3 -> python3.12
lrwxr-xr-x 1 giraycoskun staff 96 Dec 11 20:50 python3.12 -> /opt/homebrew/Cellar/[email protected]/3.12.0/Frameworks/Python.framework/Versions/3.12/bin/python3.12
Symlinks are pointing to brew install python3.12.0 however it is updated so this version is cleaned with the brew default option.
Solution
The lesson here is that python versions for well any tool should be stable so I set them to a python installed with pyenv.