dccsillag / magma-nvim

Interact with Jupyter from NeoVim.
GNU General Public License v3.0
988 stars 50 forks source link

[Bug] unable to run UpdateRemotePlugins #45

Open ghost opened 2 years ago

ghost commented 2 years ago

Describe the bug whenever i run :UpdateRemotePlugins` i got this error

Encountered ImportError loading plugin at /home/user/.local/share/nvim/site/pack/packer/start/magma-nvim/rplugin
/python3/magma: libffi.so.6: cannot open shared object file: No such file or directory                             
Traceback (most recent call last):                                                                                 
  File "/home/user/.local/lib/python3.9/site-packages/pynvim/plugin/host.py", line 165, in _load                
    module = imp.load_module(name, file, pathname, descr)                                                          
  File "/home/user/.config/pyenv/versions/3.9.12/lib/python3.9/imp.py", line 244, in load_module                
    return load_package(name, filename)                                                                            
  File "/home/user/.config/pyenv/versions/3.9.12/lib/python3.9/imp.py", line 216, in load_package               
    return _load(spec)                                                                                             
  File "<frozen importlib._bootstrap>", line 711, in _load                                                         
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked                                                
ImportError: libffi.so.6: cannot open shared object file: No such file or directory                                
remote/host: python3 host registered plugins []                                                                    
remote/host: generated rplugin manifest: /home/user/.local/share/nvim/rplugin.vim  

Desktop (please complete the following information):

Additional context I'm using pyenv and i have vim.g['python3_host_prog'] = '~/.config/pyenv/shims/python3' set in my config file . Note that i have all the dependencies up and running well with no problems If i use my system's python then i will have another problem with ueberzug since it dosen't seem to work under python 3.10

airpods69 commented 2 years ago

what is the output :checkhealth? you might find the error in that

dccsillag commented 2 years ago

The problem seems to happen because libffi 'version 6' is not installed. Can you look for libffi.so.* in your machine (e.g. via find / -name 'libffi.so.*')?