Giter Club home page Giter Club logo

Comments (5)

JBakamovic avatar JBakamovic commented on August 20, 2024

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

from yavide.

nolanholden avatar nolanholden commented on August 20, 2024

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
...

from yavide.

JBakamovic avatar JBakamovic commented on August 20, 2024

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.

from yavide.

linbinchen avatar linbinchen commented on August 20, 2024

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".

from yavide.

JBakamovic avatar JBakamovic commented on August 20, 2024

Thanks for reporting the solution back.

from yavide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.