Advertisement
raiders13rugger

powerline vim error python 3.6 post-uninstall-duplicates

Mar 4th, 2017
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "<string>", line 4, in <module>
  3. File "/home/matt/.local/lib/python3.6/site-packages/powerline/vim.py", line 15, in <module>
  4. from powerline.bindings.vim import vim_get_func, vim_getvar, get_vim_encoding, python_to_vim
  5. File "/home/matt/.local/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py", line 44, in <module>
  6. vim_encoding = get_vim_encoding()
  7. File "/home/matt/.local/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py", line 25, in get_vim_encoding
  8. return vim.options['encoding'].decode('ascii') or 'ascii'
  9. AttributeError: 'str' object has no attribute 'decode'
  10. An error occurred while importing powerline module.
  11. This could be caused by invalid sys.path setting,
  12. or by an incompatible Python version (powerline requires
  13. Python 2.6, 2.7 or 3.2 and later to work). Please consult
  14. the troubleshooting section in the documentation for
  15. possible solutions.
  16. Error detected while processing function provider#python3#Call:
  17. line 18:
  18. Traceback (most recent call last):
  19. File "<string>", line 53, in <module>
  20. File "<string>", line 40, in powerline_troubleshoot
  21. File "/home/matt/.local/lib/python3.6/site-packages/powerline/lint/__init__.py", line 12, in <module>
  22. from powerline.segments.vim import vim_modes
  23. File "/home/matt/.local/lib/python3.6/site-packages/powerline/segments/vim/__init__.py", line 16, in <module>
  24. from powerline.bindings.vim import (vim_get_func, getbufvar, vim_getbufoption,
  25. File "/home/matt/.local/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py", line 44, in <module>
  26. vim_encoding = get_vim_encoding()
  27. File "/home/matt/.local/lib/python3.6/site-packages/powerline/bindings/vim/__init__.py", line 25, in get_vim_encoding
  28. return vim.options['encoding'].decode('ascii') or 'ascii'
  29. AttributeError: 'str' object has no attribute 'decode'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement