2018-05-08 2:54 GMT+03:00 srlhyo <[email protected]>:
> Please find attached png file.
>
>
> I am unable to run the plugin "browserlink.vim" 
> (https://github.com/jaxbot/browserlink.vim). It shows the following error:
>
> Fatal Python error: Py_Initialize: unable to load the file system codec
> ImportError: No module named 'encodings'
>
> I have searched for fixing but I don't understand exactly what to do from the 
> documentation found on StackOverflow and Github issues.

0. Verify that `vim -u NONE -i NONE --cmd 'python print(1)' --cmd qa`
or `vim -u NONE -i NONE --cmd 'python3 print(1)' --cmd qa` throw the
same error. If neither do then some your configuration is messing your
setup.
1. Verify that `python -c 'print(1)'` or `python3 -c 'print(1)'` is
*not* throwing this error. If it does then you have a problem with
Python installation not related to Vim.
2. Check what is in `:version` output, especially in `vim --version |
grep -i python`.
3. `--version` output should normally contain either `+python`,
`+python3`, either with `/dyn` suffix or both with `/dyn` suffix. If
you have recent Vim and `+python[3]/dyn` then `vim -u NONE -i NONE
--cmd 'echo &pythondll &pythonthreedll' --cmd qa` should print to
stderr location where Vim expects to find Python library. Without
`/dyn` `ldd $(which vim)` should tell where library is. Since error is
thrown at initialization stage Vim obviously is able to locate the
library, but it should tell you Python versions used.
4. Check that `python --version` or `python3 --version` matches
library version (two digits before `.so`). If it does not you most
likely need to recompile Vim.

If you did not discover problem by then I would suggest to post here

- Results from steps 0 and 1.
- `vim --version` output
- Library names from step 3.
- Python names from step 4.
- Output of `env | grep '^PY'`.
- Whether or not you are using some kind of virtual environment.

>
> --
> --
> You received this message from the "vim_dev" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui