Skip to content

Installation fails with precompiled Python due to symlinks=False in Poetry installer #3

@KimJS0328

Description

@KimJS0328

Description

Poetry installation via vfox-poetry fails on macOS (and potentially other platforms) when using precompiled Python binaries (e.g., those installed by mise). The Poetry installer creates a virtual environment with symlinks=False, which causes a missing libpython3.*.dylib error:

dyld: Library not loaded: @executable_path/../lib/libpython3.XX.dylib
  Referenced from: .../installs/poetry/<version>/venv/bin/python3
  Reason: tried: '...' (no such file)

Prior Art

This exact issue was previously reported and fixed in the old asdf-based plugin:

The fix was to pipe the installer script through sed 's/symlinks=False/symlinks=True/' before execution, so that the venv is created with symlinks instead of copies.

Suggested Fix

Apply the same sed 's/symlinks=False/symlinks=True/' transformation to the downloaded Poetry installer script before executing it, as was done in mise-poetry#14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions