-
Notifications
You must be signed in to change notification settings - Fork 20
Could there be an option which controls the version of python to be used. #18
Comments
As I said earlier (in #16), did you try setting let g:python_host_prog = '/usr/bin/python2' |
I encountered a new problem, if I set Majority plugins can cooperate with any version of python. However, lldb module only works fine with the default. That is why I open a new issue to post my will of lldb.nvim. |
LLDB's python module can work with any version of python2 (I think -- greater than 2.6). Making it available with the version installed through homebrew might be tricky. In my system, LLDB's python files are in this directory:
which should probably make it work... |
Sorry, I forgot to note that the lldb module in my system is shipped with Xcode. On Linux system, lldb works properly. Maybe, Apple's lldb is different. The lldb library locates at After making symbol link, when I import lldb in python which is installed through homebrew it reports:
and a window pops up with |
A bit of searching around landed me here: https:/Homebrew/homebrew/blob/master/share/doc/homebrew/Common-Issues.md#python-segmentation-fault-11-on-import-some_python_module So symlinking will not work (sorry). I guess the only path left is to install LLDB from homebrew (I think it comes with LLVM). And while at it, try to install the latest version, 3.7. |
@d0u9 How did you finally fixed the problem? I'm stuck in the exact same situation at the moment (I need to link the |
@LastSecondsToLive, Sorry, I tried a lot but failed to make |
@d0u9 So I guess I'll need to install |
It's probably impossible to make Xcode's LLDB compatible with brew python (as explained here). If you simply have to use brewed python with Neovim, you'll have to brew LLDB too, packaged with LLVM (?):
But if you can make do with system python in just Neovim (leaving let $PYTHONPATH = "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python:" . $PYTHONPATH |
Ok, I'll probably use the system python then. I just noticed, that there is no |
You don't need to uninstall I used |
Hm. No |
Ok, I'm really confused right now. I installed |
@LastSecondsToLive I'm not sure! I've never used a Mac, sorry! |
@LastSecondsToLive if you really want to use
However, due to the SIP of OSX 10.11, |
@LastSecondsToLive Note: Creating file in For example, suppose that the library of brew python locates at
|
@d0u9 Wow, that's crazy. 'SIP' seems like a pretty harsh restriction for developers - I just read about it. What do I have to do after I disabled |
Wow, I'll try this! Tomorrow I think - It's 3:57AM in Germany - I'll report tomorrow. |
@d0u9 I don't need to do the previous steps if I go with the compromise, right? |
@LastSecondsToLive, if you have brew python installed, before you operating naive python, maybe you have to execute |
@LastSecondsToLive Yes, if you don't want to mess up your library of naive python, follow my second reply. |
@d0u9 I just did a factory reset (I messed something) up. So I'm good to go I think. Are this the steps I should do (I have nothing else than the default software at the moment)? I really don't want to mess something up again...
Now Questions: @d0u9 Thank you so much already for your effort! |
Yes, only one line in this file. If you want to test whether it works properly, you can import any libraries which are installed by brew python's
I am not very sure if this is a prerequisite step. Maybe, this step is only necessary for installing YouCompleteMe.
Yes, if you want to use brew python instead of naive python, you do not oblige to install pip for naive python at all.
Python3 is unnecessary I think. I haven't try any thing about python3. BTW, It seems that brew python now is updated to 2.7.11 compare to the naive python 2.7.10. I am not certain about the effect which may be brought by the difference of these two versions of python. |
Since And yeah, python3 is not necessary for this plugin. Thanks @d0u9 |
Sorry for the late reply; not totally caught up either, but here's what I think you were asking. I do not have /usr/bin/pip My pip according to "which pip" is in /usr/local/bin It should be noted though that although I installed Python via homebrew, I installed NeoVim via source from GitHub. I am also getting a Python crash now that I have installed YouCompleteMe, and have not had time to look into it. I imagine it is a result of YouCompleteMe is linked to the Python binary not on my path. I'll look into it further this week as time allows. |
Ok, I finally got it (I didn't even need to disable This is how to get lldb.nvim on OS X:
DONE. This took me quite a while now and I really hope this post will save some people time in the future :) Thanks to @d0u9, @critiqjo and @JayBusch for the tips and tricks, which finally brought me here. |
@LastSecondsToLive I encountered this problem before, and asked THIS question. Creating a file and fill it with path of brew python's library seems a safe way to restrict such impact. |
@d0u9 That makes sense! Thank you really much. This will prevent me from messing up |
@LastSecondsToLive Step 6 should be unnecessary due to this (where the plugin itself tries to locate the module and add it to |
@LastSecondsToLive, Step 7 doesn't work, still get the |
I have set the homebrew installed python as the default python interpreter in my MAC OSX. However, lldb.vim seems uncompatible with it because of that lldb python module can only be used with the python which is shipped with system.
I hope there could be an option that allows me to select which version python to run. In that way, the vim runtime python can be separated from the python lldb.nvim works with.
The text was updated successfully, but these errors were encountered: