brew installed vim --with-python3 #20327
Comments
I am going to investigate this. I know I built vim with python3 earlier and was able to print. |
Vim will drop all python linking flags while you build with enable both python2 and python3 binding. That is vim will not load homebrew's framework if you build vim this way. |
@samueljohn Thanks for looking into it. Anything yet? |
I had to explicitly pass |
@samueljohn Is this expected? |
not solved yet. Reopening. I assumed But I have not completely looked into this. |
For MacVim, I had to remove Python 3.x support because it caused the MacVim window to disappear and the 2.x Python was also not working. But since ee0d6c0, python 2.x from homebrew should work with MacVim. I'll look into the |
I label this upstream-issue. I don't know how to fix ... |
Thanks for looking into it. In the mean time, can you revert it back to the way it use to be? I can't build vim with python3 enabled anymore no matter what argument I pass to |
@kenhan I had to disable python 3.x support until someone is able to find a fix (perhaps upstream) because it breaks 2.x bindings and most people still use 2.x. I'd love to have both bindings but MacVim seems to get confused. |
@samueljohn I see. Thanks again! |
As a side-node: Brew does not complain if you pass options to |
Has there been any progress here? Still would like to have python3 support in vim. |
There have been recent fixes to superenv/stdenv, as well as updates to Python and Vim in the last two months. Can someone |
Still no success building with python3 support. Similarly, |
@kenhan and if you disable Python 2.x by passing |
Vim's build system is strange. It detects python correctly but then fails to link because it does not use the recommended standard method of |
Oh btw. we don't have an option |
#21366. BTW, |
Can we patch (or inreplace) such that it used the actual python framework location and not the hard coded one? |
@samueljohn Updated #21366 is done. Now vim can load brewed Python dynamic library using absolute path. |
@mbcoguno cool ... I'll check your PR. That is good news! |
I have python3 installed via homebrew. When I 'brew install vim --with-python3' vim installs successfully, and 'vim --version' shows ' +python3/dyn '
But when I open vim and do
:py3 print("hello")
it returns
E370: Could not load library Python.framework/Versioins/3.3/Python
E263: Sorry, this command is disabled, they Python library could not be loaded.
Can someone explain why vim --version shows +python3/dyn but it actually does not work? Thanks!
The text was updated successfully, but these errors were encountered: