-
Notifications
You must be signed in to change notification settings - Fork 28
Cannot get it to work #36
Comments
Hi mandreyel I think the reason you may be seeing this is that neovim module is not installed for the python3 version which Vim is configured to use. how did you install vim and python? assuming you are on a mac, I think if you install vim and python both via homebrew (and symlink to homebrew python executables in pyenv if you are using it), this could be a solution. ..or try removing python version management and rerun pip install commands using system pythons hope that helps |
Hey, thanks for your response! I completely neglected to mention my platform, which is Linux, so not using homebrew, and python came preinstalled on my system, as did vim, I believe. However, you may have a point there. How do I check which python version vim is using [as in, which specific binary]? Also, shouldn't this be solved by having installed the neovim module with both pip and pip3, in both cases with the --user flag and without it? Appreciate the help |
I am running into this issue recently. My Arch Linux configurations are all running python3 and vim 8+. I usually use the fix here, but when I try to downgrade greenlet to 0.4.10 it just blows up at me. Any tips on how to fix it? |
@jparr721 Thanks for linking in that issue, I must have missed it when checking for similar ones. Indeed, greenlet seems to be the culprit for me as well. |
Same here, running on Arch with latest vim 8+ and python3; |
You should try I use Manjaro Linux and vim-hug-neovim-rpc works. |
@Shougo importing neovim in a python3 interpreter does work, hence my confusion as to why it doesn't work from within vim. |
If so, Vim does not use the Python. |
Check the python path from within vim you're saying? |
When I run |
You can specify Python library by
And you must test |
Aren't dlls a windows only thing? Or am I mistaken? |
Also, I tested with |
You should remove greenlet library and reinstall neovim package. |
It is not only Windows environment. |
Please research about |
Ahh I see now. My |
installing the greenlet and neovim from the aur instead of pip3 solved the problem for me. i have no clue why this worked, tho. |
When i update my vim to 8.1 the 'import neovim' not work on vim, but works on python3 shell |
The solution of strahlii worked for me on Manjaro Linux for Vim 8.1 |
I am getting the same problem as @lucasteles. |
You should re-build Vim8.1 with Python3 support. |
I'm on Arch Linux. Vim8.1 (built with Python3 support - Started off with
Finally I did |
I tried @vdraceil's fix, but it didn't work for me. There's always import errors in vim. |
For anyone who still has the issue which gives something like the following when executing
You should config pip to compile binary locally, and I find this on archlinux forum. Put it in
|
I'm on macOS Mojave. Vim8.1 (built with Python3 support - vim --version) % python --version
Python 3.7.1
% pyenv root
~/.anyenv/envs/pyenv
% which pip3
~/.anyenv/envs/pyenv/shims/pip3
% pip list
Package Version
---------- -------
greenlet 0.4.10
msgpack 0.6.1
neovim 0.3.1
pip 19.0.3
pynvim 0.3.2
setuptools 39.0.1
typing 3.6.6
:echo has("python3")
1 When I run below command in vim for checking, error had happened.
What should I do? I just want to use Shougo/denite.nvim.. BTW, I adjust a command for installing pynvim. It's necessary for pip current version.
|
I don't recommend for you to use pyenv. It is difficult set up properly. If you really need pyenv(why?), you must set |
@roylez's solution worked for me on Arch. Thanks so much! |
I had the same issue with my install on macOS Catalina. What worked for me was to install the dependencies for each version of python/pip that I have installed. If you have multiple versions of python installed then this could possibly help you |
I am on macOs Mojave and I have the same issue too. When trying to install pynvim with
I already tried everything. I have vim 8.2.0654 installed with hombrew. |
Found a way to fix it. @korsmakolnikov had the solution. Thanks a lot!!! Apparently you need python 3.8 for the latest vim in homebrew. What I did:
@korsmakolnikov I don't know if it will be of some help but the latest Originally posted by @dottorblaster in #47 (comment) |
@roxma I think the problem on macOS X should be documented in README. |
My OS (MacOS) Python is 3.9 but VIM (8.2) is using 3.10. I didn't want to force VIM to use 3.9 but installation of "pynvim" from within VIM didn't work for me. I managed to fix it by determining where is Python 3.10 installed (run in VIM): in my case it returned: and then in BASH I located "pip3" here: and then simply All works again. |
Hello,
first of, apologies if this is not the right place to ask. I cannot for the life of me figure out how to get this plugin to work. I have vim version 8.1 with python3 support (
has('pythonx')
andhas('python3')
both return 1) and I have installed neovim via pip (both locally with the--user
flag and globally with sudo to see if it changes anything), but when running:echo neovim_rpc#serveraddr()
, this is what I get:Have I perhaps missed an installation step?
Thanks in advance!
The text was updated successfully, but these errors were encountered: