-
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
ycm_core loading issues on Ubuntu 16.04 #2136
Comments
It' also occur this problem in my ubuntu16.04,but no one else solve the problem yet. |
@linghutf Did you try to set the let g:ycm_server_python_interpreter = '/usr/bin/python' |
As @Valloric says |
@micbou @ehzShelter Are you sure?My environment is Ubuntu16.04 Desktop,The default python is python2.After adding the script in |
Could you run the command |
@linghutf ...Surely without any issue.. I have also run :YcmToggleLogs stderr sudo apt-get install python3-dev This is required to run install.py script via python3 interpreter |
Just as a hint for other Ubuntu users: If you run into errors, while using the trivial fix of @Valloric: python3 install.py <args> , do not forget to install the sudo apt-get install python3-dev |
Note: depends on ycm-core/ycmd#466 being merged and the ycmd submodule ref then being updated. Fixes #2136
Note: depends on ycm-core/ycmd#466 being merged and the ycmd submodule ref then being updated. Fixes #2136
Note: depends on ycm-core/ycmd#466 being merged and the ycmd submodule ref then being updated. Fixes #2136
Note: depends on ycm-core/ycmd#466 being merged and the ycmd submodule ref then being updated. Fixes #2136
mine is 16.04 it said the runit can't work,and the report shows everytime when i use the command of dpkg.i am a green hand in linux and language.don't know how to do. |
[READY] Storing path to Python used in build.py We'll use this in YCM to ensure we start ycmd with the same version of Python that was used for building the C++ libraries loaded into ycmd. Related to ycm-core/YouCompleteMe#2136 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/466) <!-- Reviewable:end -->
Note: depends on ycm-core/ycmd#466 being merged and the ycmd submodule ref then being updated. Fixes #2136
[READY] Starting ycmd with Python used to build it Note: depends on ycm-core/ycmd#466 being merged and the ycmd submodule ref then being updated. Fixes #2136 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/youcompleteme/2140) <!-- Reviewable:end -->
Hello, I am running Archlinux and I am still having the same problem even though I tried setting the
I installed
Thank you very much in advance for any help. |
This is not the |
Oh sorry thank you |
I followed @micbou 's instruction to set |
well actually i klone another vimrc from my friend and i wonder if i still use yours will it cause problems anyway i just want to remove |
@chenshuxian1997 I don't understand what you mean. Could you write in Chinese instead? |
@starrysl 看样子我的英语真的很差...言归正传,就是我后来用了朋友vim配置,导致每次更新都会显示runit没配置,后来我就直接手动找到文件路径删除文件夹,应该没问题吧 |
Hello! Greetings |
@Thilo1 should we be more specific? I mean the error is telling you what is happening 😕 |
I am not complaining about the specifity of the error message 😉. My wish would be more verbosity. Good KnightDiese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 14.10.16, 23:41, Andrea Cedraro notifications@github.com schrieb:
|
@Thilo1 Did you use the
in Vim? |
No i didn't use the install.py. Took the other way with direct cmake call.Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 15.10.16, 00:12, micbou notifications@github.com schrieb:
|
Same issue as above. Had to explicitly use python3 (as others suggested) in order to get the install script working:
Python2 generated a compilation error. Also make sure to add to your .vimrc file:
|
@michaelachrisco thank you very much! i tried it all day... now it works. |
@michaelachrisco thank you very much! i tried it for nearly 2 hours... now it works. |
Ugh, I thought we were done with this, but no.
So I moved my home workstation to Ubuntu 16.04 and lo and behold, we don't work there out-of-the-box.
install.py
givesImportError: dynamic module does not define init function (PyInit_ycm_core)
Of course, I know how to fix this. The most trivial is to run
python3 install.py <args>
instead of just./install.py <args>
. We also have an entry in the FAQ with another workaround.But it really must work out-of-the-box on the most frequently used Linux distro. We don't have much choice here; either it does and all is well in the world, or it doesn't and we'll get inundated with issue reports, no matter how well we document the issue.
The root of the problem is that despite reports that 16.04 will have system python default to python 3, that's wrong.
So it's still 2.7 as the default. BUT, the default vim is compiled against python 3!
vim --version
has-python
and+python3
.The result is that running
./install.py
makes it run inside a python 2 interpreter, which means that in that install file:so we end up compiling the libs against python 2. But then YCM uses
sys.executable
inside Vim (which points to python 3) to start ycmd, and that explodes.@micbou @puremourning @vheon I'm looking for ideas on how best to address this, because we really must.
The text was updated successfully, but these errors were encountered: