c0r73x / neotags.nvim

Tag highlight in neovim
MIT License
122 stars 9 forks source link

No module name 'neovim.api.nvim' #36

Closed MikaYuoadas closed 5 years ago

MikaYuoadas commented 5 years ago

When starting neovim I get this traceback:

no notification handler registered for "/home/asadaoui/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags:function:NeotagsInit"                         
Encountered ModuleNotFoundError loading plugin at /home/asadaoui/.config/nvim/plugged/neotags.nvim/rplugin/python3/neotags: No module named 'neovim.api.nvim'  
Traceback (most recent call last):                                                                                                                             
  File "/usr/lib/python3.7/site-packages/pynvim/plugin/host.py", line 135, in _load                                                                            
    module = imp.load_module(name, file, pathname, descr)                                                                                                      
  File "/usr/lib/python3.7/imp.py", line 244, in load_module                                                                                                   
    return load_package(name, filename)                                                                                                                        
  File "/usr/lib/python3.7/imp.py", line 216, in load_package                                                                                                  
    return _load(spec)                                                                                                                                         
  File "<frozen importlib._bootstrap>", line 696, in _load                                                                                                     
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked                                                                                            
ModuleNotFoundError: No module named 'neovim.api.nvim'

I'm using Neovim v0.3.1

It looks like the python module was renamed from neovim to pynvim. (see this commit)

MikaYuoadas commented 5 years ago

I've created a small pull request that fix the issue on my setup.