Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I meet some error when run you script #1

Open
sdrgroup opened this issue Jul 13, 2016 · 5 comments
Open

I meet some error when run you script #1

sdrgroup opened this issue Jul 13, 2016 · 5 comments

Comments

@sdrgroup
Copy link

After run your script, I got following message. I don't know what's wrong with it. Could you help me solve it? Thank you.
line 65:
E319: Sorry, the command is not available in this version: py << EOF
line 66:
E492: Not an editor command: import os.path
line 67:
E492: Not an editor command: import sys
line 68:
E492: Not an editor command: import vim
line 69:
E15: Invalid expression: 'VIRTUA_ENV' in os.environ:
line 126:
E171: Missing :endif
Error: Required vim compiled with +python

My OS is ubuntu16.04

@j1z0
Copy link
Owner

j1z0 commented Jul 14, 2016

This vimrc requires VIM compiled with python.

Seems like this thread would have some good info for you:
http://askubuntu.com/questions/764882/ubuntu-16-04-vim-without-python-support

@leelong2020
Copy link

I get the same " Error ", but I can't execute the command "apt install vim-nox-py2" with Debian.

So what should I do?

@WonderM
Copy link

WonderM commented Jul 10, 2018

Hi.

I am a Linux noobs and am trying your script on Linux Mint 19 and these are the error messages I get:
Error detected while processing /home/XXXXX/.vim/vimrc:
line 66:
E319: Sorry, the command is not available in this version: py << EOF
line 67:
E492: Not an editor command: import os.path
line 68:
E492: Not an editor command: import sys
line 69:
E492: Not an editor command: import vim
line 70:
E15: Invalid expression: 'VIRTUA_ENV' in os.environ:
line 127:
E171: Missing :endif
Error: Required vim compiled with +python
I tried to follow this link (http://askubuntu.com/questions/764882/ubuntu-16-04-vim-without-python-support) and vim-nox-py2 is can not be located.

Have you tried your script on the latest Ubuntu or Linux Mint?
Where can I learn more about these errors?
Is it possible to help or update your script?

Thanks

@j1z0
Copy link
Owner

j1z0 commented Jul 10, 2018

yeah basically you need vim compiled with python 2 support for that to work.. .if you vim has python 3 support you can change py << EOF to py3 << EOF but either way you need some sort of python support compiled with your VIM.

@bwakkie
Copy link

bwakkie commented Aug 18, 2020

yeah basically you need vim compiled with python 2 support for that to work.. .if you vim has python 3 support you can change py << EOF to py3 << EOF but either way you need some sort of python support compiled with your VIM.

thanks, that helped me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants