Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Multiple errors on startup. #77

Open
m1ksu opened this issue Oct 13, 2017 · 5 comments
Open

Multiple errors on startup. #77

m1ksu opened this issue Oct 13, 2017 · 5 comments

Comments

@m1ksu
Copy link

m1ksu commented Oct 13, 2017

screenshot_2017-10-14_01-25-29
Why does this happen and how do I fix this?

@JBakamovic
Copy link
Owner

Seems like you don't have python support compiled in for your version of vim.

@nolanholden
Copy link
Contributor

It appears that for Ubuntu 17.04 Zesty, apt install vim-gtk installs vim without python support, only with python3 support.

Even with python2 support, this issue persists:

I tried to solve this problem by first uninstalling vim (DANGER: take note of any files, such as your vimrc, which may be lost.). To be sure everything is uninstalled:

sudo apt-get remove *vim*

Caution: this may match some non-vim packages.

And then, compiling ViM from source:

cd /tmp && git clone https://github.com/vim/vim.git && cd vim
./configure --enable-pythoninterp --prefix=/usr
make && sudo make install

^credits

Now, when I run vim --version, the list of features shows:

...
+python    # <--- this is what we were lacking
-python3
...

@JBakamovic
Copy link
Owner

JBakamovic commented Oct 20, 2017

Yes, it is crucial that gvim is compiled with python2 support otherwise it will not work (most source code in yavide is python2). Some distros decide to distribute and compile gvim with python3 support only, some others compile it with python2 only and the rest compile it with both python2 & python3 support. This is where the things start tearing apart.

What people can do to fix this problem is to install required dependencies in order to get gvim with python2 support. Hopefully someone will make a pull-request as well to fix the installation script.

@linbinchen
Copy link

I am on Mint 18.3 which should based on Ubuntu 16.04. I encountered the same issue on startup. My solution is: After installation, I change the yavide.desktop to use vim.gnome-py2 -g to launch yavide. Because I am using python 3 as my default python. So, before installation, I also change the "PIP_INSTALL_CMD" in install.sh to "pip2 install".

@JBakamovic
Copy link
Owner

Thanks for reporting the solution back.

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

No branches or pull requests

4 participants