Closed sagnibak closed 4 years ago
Hi, As stated in the error message, the problem comes from this part of your .vimrc file :
python3 << EOF
import vim
import git
def is_git_repo():
try:
_ = git.Repo('.', search_parent_directories=True).git_dir
return "1"
except:
return "0"
vim.command("let g:pymode_rope = " + is_git_repo())
EOF
As you can see this is some python code trying to import the module git
and you don't seem to have it on your computer. You can install it by running pip3 install gitpython
(you might need to prepend sudo -H
to the command line for it to work).
I'm still getting the same error even after installing gitpython
Hi, As stated in the error message, the problem comes from this part of your .vimrc file :
python3 << EOF import vim import git def is_git_repo(): try: _ = git.Repo('.', search_parent_directories=True).git_dir return "1" except: return "0" vim.command("let g:pymode_rope = " + is_git_repo()) EOF
As you can see this is some python code trying to import the module
git
and you don't seem to have it on your computer. You can install it by runningpip3 install gitpython
(you might need to prependsudo -H
to the command line for it to work).
For me sudo pip3 install gitpython
solved. Thanks @Braincoke.
The same error, i think the error comes from "import vim" line, what package is that?
On Ubuntu 16.04 running on Windows Subsystem for Linux, whenever I am running
vim
, it is giving the following error:If I press enter, it opens vim like normal. Please note that I am quite new to Vim, so I am not sure if what is appearing is normal or not. I have attached two screenshots as well.
In the second image, there seems to be a Python-related error (right at the bottom), but I have no idea how to even look at the complete error. I would really appreciate some help!