powerline / powerline

Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.

Home Page:https://powerline.readthedocs.org/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Powerline-daemon giving error libffi.so.7: cannot open shared object file

farzadmf opened this issue · comments

Hi,

Today when I updated my packages in Manjaro Linux, I'm getting this error when I run powerline-daemon:

Traceback (most recent call last):
  File "/home/farzad/.asdf/installs/python/3.9.7/bin/powerline-daemon", line 23, in <module>
    from powerline.shell import ShellPowerline
  File "/home/farzad/.asdf/installs/python/3.9.7/lib/python3.9/site-packages/powerline/__init__.py", line 11, in <module>
    from powerline.lib.config import ConfigLoader
  File "/home/farzad/.asdf/installs/python/3.9.7/lib/python3.9/site-packages/powerline/lib/config.py", line 12, in <module>
    from powerline.lib.watcher import create_file_watcher
  File "/home/farzad/.asdf/installs/python/3.9.7/lib/python3.9/site-packages/powerline/lib/watcher/__init__.py", line 7, in <module>
    from powerline.lib.watcher.inotify import INotifyFileWatcher
  File "/home/farzad/.asdf/installs/python/3.9.7/lib/python3.9/site-packages/powerline/lib/watcher/inotify.py", line 6, in <module>
    import ctypes
  File "/home/farzad/.asdf/installs/python/3.9.7/lib/python3.9/ctypes/__init__.py", line 8, in <module>
    from _ctypes import Union, Structure, Array
ImportError: libffi.so.7: cannot open shared object file: No such file or directory

I have the latest version of powerline installed (2.8.2).

Please let me know if there's any other information I can provide to troubleshoot this.

It seems that you are missing libffi.so.7, perhaps it got removed with your update?

Thank you @PH111P for the quick reply.

Not sure what happened and why it was removed (I have no idea what the library is for 😛 ), but, at least in my Manjaro distribution, I installed aur package libffi7, and it seems to be fine now

PS: putting here the package name in case people face the same issue
PS2: I think the package runs some tests, so it takes a while to install; patience is the key 😅

Closing this as my issue is resolved 🙂