-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
YouCompleteMe unavailable: unable to load Python. #3708
Comments
Hi. Can you do |
Hi,
the only python I have installed is also:
Thanks for the help. |
That's loading python2. YCM requires python 3. Vim can only load one version of |
As Boris said your vim needs functioning python3. I recommend finding out which plugin or whatever is using python2 and upgrading it. Otehrwsie there are instructions on the front page for using our legacy python2 branch. |
You are absolutely right,
where the |
I recently upgraded from fedora 30 to fedora 32 and ran into this issue. Running |
I recently upgraded MacVim and ran into this issue. MacVim has updated from 3.8 to 3.9, and i only had |
You upgraded python or MacVim? |
Sorry had a confusing typo in my comment. Upgrading MacVim broke YCM, as it MacVim expected python 3.9 after the upgrade and couldn't start python 3 at all without it present. So, upgrading python fixed the issue. |
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
Frequently Asked Questions section.
about to report and couldn't find an answer to my problem. (Example Google
search.)
vim --version
.:YcmDebugInfo
.the
:YcmToggleLogs
command.version) I am using.
my issue, using
vim -Nu /path/to/YCM/vimrc_ycm_minimal
, including what Iexpected to happen and what actually happened.
of
install.py
(orcmake
/make
/ninja
) including its invocationthat any help I receive is a selfless, heartfelt gift of their free time. I
know I am not entitled to anything and will be polite and courteous.
actually perform all of these steps.
Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.
Issue Details
Despite popularity of this error, and variety of solutions to solve, unfortunately none of the already proposed solutions worked for me.
I installed using arch AUR. I also tried installation using Vundle.
What did you expect to happen?
No error.
What actually happened?
I get error and autocompletion doesn't work.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
I think this could cause the issue, I couldn't find
~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
in the output:scriptnames
. Although I did addset rtp+=~/.vim/bundle/YouCompleteMe
to~/.vimrc
, but no help.Output of
YcmDiags
Output of
git rev-parse HEAD
in YouCompleteMe installation directoryContents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
Linux archlinux 5.4.47-1-lts #1 SMP x86_64 GNU/Linux
Output of build/install commands
The text was updated successfully, but these errors were encountered: