Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named common #45

Open
FatBoyXPC opened this issue Aug 9, 2018 · 5 comments · May be fixed by #48 or #51
Open

No module named common #45

FatBoyXPC opened this issue Aug 9, 2018 · 5 comments · May be fixed by #48 or #51

Comments

@FatBoyXPC
Copy link

I'm getting this error when I attempt to get this plugin working with my neovim:

remote/host: python3 host registered plugins []                                                                                                                                                                      
function remote#host#UpdateRemotePlugins[6]..<SNR>55_RegistrationCommands[13]..remote#host#RegisterPlugin, line 5                                                                                                    
Plugin "/home/james/dotfiles/vim/plugged/floobits-neovim/rplugin/python/floobits" is already registered                                                                                                              
remote/host: generated rplugin manifest: /home/james/.local/share/nvim/rplugin.vim                                                                                                                                   
Press ENTER or type command to continue  

I also get this warning when I open neovim:

Floobits error: no neovim python module. Run `pip install neovim` to fix. For more info, :he nvim-python
Press ENTER or type command to continue

However, if I pip install neovim or pip3 install neovim (pip and pip3 are the same versoin)

➜  ft pip install neovim
Requirement already satisfied: neovim in /usr/lib/python3.7/site-packages (0.2.6)
Requirement already satisfied: msgpack>=0.5.0 in /usr/lib/python3.7/site-packages (from neovim) (0.5.6)
Requirement already satisfied: greenlet in /usr/lib/python3.7/site-packages (from neovim) (0.4.14)
➜  ft pip3 install neovim
Requirement already satisfied: neovim in /usr/lib/python3.7/site-packages (0.2.6)
Requirement already satisfied: msgpack>=0.5.0 in /usr/lib/python3.7/site-packages (from neovim) (0.5.6)
Requirement already satisfied: greenlet in /usr/lib/python3.7/site-packages (from neovim) (0.4.14)
➜  ft pip --version
pip 18.0 from /usr/lib/python3.7/site-packages/pip (python 3.7)
➜  ft pip3 --version
pip 18.0 from /usr/lib/python3.7/site-packages/pip (python 3.7)
➜  ft 

I'm on Arch linux if that matters, I have python2 and python3 installed.

@FatBoyXPC
Copy link
Author

FatBoyXPC commented Aug 10, 2018

Okay, I ended up adding g:python_host_prog to my init.vim and that got rid of the above, but I'm met with a new error now:

remote/host: python3 host registered plugins []                                                                                                                                                                      
Encountered ModuleNotFoundError loading plugin at /home/james/dotfiles/vim/plugged/floobits-neovim/rplugin/python/floobits: No module named 'common'                                                                 
Traceback (most recent call last):                                                                                                                                                                                   
  File "/usr/lib/python3.7/site-packages/neovim/plugin/host.py", line 130, 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 'common'                                                                                                                                                                        
remote/host: python host registered plugins []                                                                                                                                                                       
remote/host: generated rplugin manifest: /home/james/.local/share/nvim/rplugin.vim                                                                                                                                   
Press ENTER or type command to continue  

The above variable is set to /usr/lib/python which is symlinked to /usr/bin/python3

@FatBoyXPC FatBoyXPC changed the title Failed to load python host No module named common Aug 10, 2018
@gavlooth
Copy link

gavlooth commented Jan 6, 2020

I am having the exact same issue. Any updates ?

@piksel
Copy link

piksel commented Jun 8, 2020

Yeah, it seems like the plugin does not work with python3, I am currently working on a PR

@piksel piksel linked a pull request Jun 8, 2020 that will close this issue
This was referenced Nov 3, 2021
@josswright
Copy link

Any movement on this? It looks like there are some pull requests that aim to fix this?

@eterps
Copy link

eterps commented Apr 23, 2023

Any updates on this? This seems to be essentially a complete halt concerning nvim support, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants