Installation breaks when Homebrew upgrades Python due to dangling dylib reference #34
Closed
2 tasks done
Labels
duplicate
This issue or pull request already exists
--
The Poetry installation breaks when Homebrew upgrades Python to a new maintenance release or to a new downstream release (e.g. 3.10.6_1 to 3.10.6_2). The error message is the following:
You should be able to reproduce this by:
python@3
), e.g. 3.10.6_1The problem appears to be that the installer creates the virtual environment with copies instead of symlinks. This is a good default for Windows, but not for macOS. On macOS, the copied interpreter binary references the Python dynamic library using a path including the full version number. When Homebrew upgrades Python, this path disappears. By contrast, virtual environments created with the default strategy use a symbolic link that remains stable for all releases of a Python feature version (
major.minor
). Upgrading Python to a maintenance release seamlessly and implicitly upgrades any associated virtual environments.The problem is here:
I suggest omitting the
symlink
argument and using the platform default instead, which is False on Windows and True elsewhere.The text was updated successfully, but these errors were encountered: