Skip to content

macOS venv creation via copy fails #707

@gaborbernat

Description

@gaborbernat
❯ python3.13 -m venv --copies venv --clear
Error: Command '['/Users/bgabor8/git/github/virtualenv/venv/bin/python3.13', '-m', 'ensurepip', '--upgrade', '--default-pip']' died with <Signals.SIGABRT: 6>.

❯ venv/bin/python 
dyld[94922]: Library not loaded: @executable_path/../lib/libpython3.13.dylib
  Referenced from: <4C4C4407-5555-3144-A1FE-AA5FDFE2B24E> /Users/bgabor8/git/github/virtualenv/venv/bin/python
  Reason: tried: '/Users/bgabor8/git/github/virtualenv/venv/lib/libpython3.13.dylib' (no such file)
fish: Job 1, 'venv/bin/python' terminated by signal SIGABRT (Abort)

Only happens on macOS, not Linux and Windows. Works when using symlink mode, unclear if related to #381

(This breaks the virtualenv test suite at https://github.com/pypa/virtualenv/actions/runs/16404089042/job/46347551787?pr=2904)

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