Skip to content

Macvim does not find standard macOS python3 #1351

@dlejay

Description

@dlejay

Steps to reproduce

  1. Install python with xcode-select --install
  2. Install Macvim via the .dmg file
  3. Launch Macvim and type :python3 --version
  4. Launch Terminal.app and type python3 --version

Expected behaviour

Macvim should find python, since it is installed by macOS.
Terminal.app replies Python 3.9.6

Macvim looks for the wrong default path. I guess it's really looking for
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Python3

Version of Vim and architecture

9.0, macOS, arm64

Environment

macOS Ventura 13.1

How MacVim was installed

Downloaded from GitHub

Logs and stack traces

E370: Could not load library /opt/homebrew/Frameworks/Python.framework/Versions/
3.10/Python: dlopen(/opt/homebrew/Frameworks/Python.framework/Versions/3.10/Pyth
on, 0x0009): tried: '/opt/homebrew/Frameworks/Python.framework/Versions/3.10/Pyt
hon' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Framewor
ks/Python.framework/Versions/3.10/Python' (no such file), '/opt/homebrew/Framewo
rks/Python.framework/Versions/3.10/Python' (no such file), '/Library/Frameworks/
Python.framework/Versions/3.10/Python' (no such file), '/System/Library/Framewor
ks/Python.framework/Versions/3.10/Python' (no such file, not in dyld cache)

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration

  • by running MacVim.app from GUI macOS interface
  • by running vim/gvim/etc installed by MacVim
  • by running other versions of vim (e.g. /usr/bin/vim)

Issue has been tested with no configuration

  • by running mvim --clean (or gvim, supplied by MacVim distribution)
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)

Other conditions

  • The both Homebrew packages "vim" and "macvim" are installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions