installation problem with powerline in vim

229 views
Skip to first unread message

syntaxman

unread,
Apr 21, 2018, 11:33:38 AM4/21/18
to powerline
I have the following relevant software/versions:

powerline-status 2.6  (installed from pip)
python  3.6.4
neovim  0.2.3-890

I have never installed powerline before, so this isn't a working installation that broke.  The following is the error I got:

Error detected while processing function provider#python3#Call:
line   18:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/wade/.local/lib/python3.6/site-packages/powerline/vim.py", line 15, in <module>
    from powerline.bindings.vim import vim_get_func, vim_getvar, get_vim_encoding, python_to_vim
  File "/home/wade/.local/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py", line 44, in <module>
    vim_encoding = get_vim_encoding()
  File "/home/wade/.local/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py", line 25, in get_vim_encoding
    return vim.options['encoding'].decode('ascii') or 'ascii'
AttributeError: 'str' object has no attribute 'decode'

Relevant settings from my vimrc:

set encoding=utf-8
py3 << EOF
from powerline.vim import setup as powerline_setup
powerline_setup()
del(powerline_setup)
EOF

I haven 't enabled the statusline yet only because I didn't get that far, yet.
Anyone have a clue as to how I can clean up this error, please?

Nikolay Aleksandrovich Pavlov

unread,
Apr 21, 2018, 12:48:48 PM4/21/18
to syntaxman, powerline
Neovim is currently not supported. There is a branch
(editors-refactor) which assumed to fix that (among other things), but
in practice it appeared that it noticeably slows editor down (though
still better then adjusting powerline to use old Vim API for Neovim).
> --
> You received this message because you are subscribed to the Google Groups
> "powerline" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to powerline-supp...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages