poetry run task docs-live works fine for https://github.com/gdcc/www.gdcc.io
However, for https://github.com/gdcc/python-dvuploader even when running poetry --version I get an error:
% poetry --version
dyld[47269]: Library not loaded: /opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Python
Referenced from: <2104F075-5875-3801-93D0-6184863AB9F9> /Users/PDurbin/Library/Application Support/pypoetry/venv/bin/python
Reason: tried: '/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Python' (no such file), '/opt/homebrew/Cellar/python@3.12/3.12.4/Frameworks/Python.framework/Versions/3.12/Python' (no such file)
zsh: abort poetry --version
Why? And how do I fix this?
Which version of poetry are you using? I have 2.1.3 and the commands are working in the repository.
pdurbin@beamish www.gdcc.io % poetry --version
Poetry (version 2.1.4)
(I can't run it from the other repo.)
Seems like it tries to use Python 3.12 but it fails. Have you installed poetry via brew?
pdurbin@beamish www.gdcc.io % which poetry
/Users/PDurbin/.pyenv/shims/poetry
I am not a 100% sure but it could be due to pyenv trying to use a global Python version that does not exist or has no Poetry installation. Maybe you could re-install Poetry globally using brew install poetry
I guess I'm confused why poetry works in one repo but not the other.
Dito, thats pretty confusing :smile:
I was looking at #python > install poetry fail on Mac and I thought you recommended Conda last time. You're ok with Homebrew now? :smile: I'm already using Homebrew.
For dependency management poetry is a nice choice, but I handle my envs exclusively through conda since years. Maybe I am just too routined with it, but it has given me the least headaches so far :sweat_smile:
I have installed poetry through homebrew and havent run into any issues so far, apart from envs, for which I use conda. Maybe it helps to install through homebrew, as I am not sure about the behaviour when used with pyenv
Good news, poetry install --with test worked fine. I installed Python 3.10 and poetry from brew.
Awesome!
Last updated: Nov 01 2025 at 14:11 UTC