Stream: python

Topic: poetry not working for python-dvuploader


view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 18 2025 at 17:44):

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?

view this post on Zulip Jan Range (Aug 18 2025 at 18:40):

Which version of poetry are you using? I have 2.1.3 and the commands are working in the repository.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 18 2025 at 18:41):

pdurbin@beamish www.gdcc.io % poetry --version
Poetry (version 2.1.4)

(I can't run it from the other repo.)

view this post on Zulip Jan Range (Aug 18 2025 at 18:44):

Seems like it tries to use Python 3.12 but it fails. Have you installed poetry via brew?

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 18 2025 at 18:45):

pdurbin@beamish www.gdcc.io % which poetry
/Users/PDurbin/.pyenv/shims/poetry

view this post on Zulip Jan Range (Aug 18 2025 at 18:56):

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

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 18 2025 at 18:58):

I guess I'm confused why poetry works in one repo but not the other.

view this post on Zulip Jan Range (Aug 18 2025 at 18:59):

Dito, thats pretty confusing :smile:

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 18 2025 at 19:00):

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.

view this post on Zulip Jan Range (Aug 18 2025 at 19:04):

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:

view this post on Zulip Jan Range (Aug 18 2025 at 19:06):

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

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 18 2025 at 20:00):

Good news, poetry install --with test worked fine. I installed Python 3.10 and poetry from brew.

view this post on Zulip Jan Range (Sep 18 2025 at 20:03):

Awesome!


Last updated: Nov 01 2025 at 14:11 UTC