ncm2 / ncm2

:heart: Slim, Fast and Hackable Completion Framework for Neovim
MIT License
1.34k stars 42 forks source link

:echo has(‘python3’) returns ‘0’, but python 3 is installed #125

Closed chrisvacc closed 5 years ago

chrisvacc commented 5 years ago

OS - macOS Mojave

NVIM v0.2.2 Build type: Release LuaJIT 2.0.5 Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_H AS_VAR_FROM -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-param eter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protect or-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I/tmp/neovi m-20180209-92407-udkzoo/neovim-0.2.2/build/config -I/tmp/neovim-20180209-92407-u dkzoo/neovim-0.2.2/src -I/usr/local/include -I/usr/local/include -I/usr/local/in clude -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/loca l/opt/gettext/include -I/usr/include -I/tmp/neovim-20180209-92407-udkzoo/neovim- 0.2.2/build/src/nvim/auto -I/tmp/neovim-20180209-92407-udkzoo/neovim-0.2.2/build /include Compiled by brew@HighSierra.local

Also error: Error detected while processing BufEnter Auto commands for "*": E117: Unknown function: ncm2#enable_for_buffer E117: Unknown function: ncm2#enable_for_buffer E117: Unknown function: ncm2#enable_for_buffer E117: Unknown function: ncm2#enable_for_buffer

roxma commented 5 years ago

:echo has(‘python3’) returns ‘0’, but python 3 is installed

pip install pynvim

:help provider-python

chrisvacc commented 5 years ago
pip install pynvim
Requirement already satisfied: pynvim in /usr/local/lib/python2.7/site-packages (0.3.1)
Requirement already satisfied: trollius in /usr/local/lib/python2.7/site-packages (from pynvim) (2.2)
Requirement already satisfied: msgpack>=0.5.0 in /usr/local/lib/python2.7/site-packages (from pynvim) (0.5.6)
Requirement already satisfied: greenlet in /usr/local/lib/python2.7/site-packages (from pynvim) (0.4.13)
Requirement already satisfied: six in /usr/local/lib/python2.7/site-packages (from trollius->pynvim) (1.12.0)
Requirement already satisfied: futures in /usr/local/lib/python2.7/site-packages (from trollius->pynvim) (3.2.0)

Edit, wait:

pip3 install pynvim
Collecting pynvim
  Using cached https://files.pythonhosted.org/packages/03/26/507e0e1114341cae48af6c6cbb6efa2ea7bcce5866164bca3a22502fee00/pynvim-0.3.1.tar.gz
Collecting msgpack>=0.5.0 (from pynvim)
  Downloading https://files.pythonhosted.org/packages/3a/bb/dc3f9fc608a6c1c7a471c2bebc761d9c8dbb2f7179a4283a89b9451765b5/msgpack-0.6.0.tar.gz (117kB)
    100% |████████████████████████████████| 122kB 726kB/s 
Collecting greenlet (from pynvim)
  Downloading https://files.pythonhosted.org/packages/f8/e8/b30ae23b45f69aa3f024b46064c0ac8e5fcb4f22ace0dca8d6f9c8bbe5e7/greenlet-0.4.15.tar.gz (59kB)
    100% |████████████████████████████████| 61kB 12.4MB/s 
Installing collected packages: msgpack, greenlet, pynvim
  Running setup.py install for msgpack ... done
  Running setup.py install for greenlet ... done
  Running setup.py install for pynvim ... done
Successfully installed greenlet-0.4.15 msgpack-0.6.0 pynvim-0.3.1

Lemme try now

chrisvacc commented 5 years ago

Wait, it works.. thanks!!!