-
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
Fatal Python error: PyThreadState_Get: no current thread #458
Comments
And where did you get the error you posted in the issue summary? Also, what were you doing at the time? |
Got it just starting MacVim. Terminal Vim (that was compiled with MacPorts) works. |
Are you using the official MacVim binary or something else? |
Official MacVim binary as downloaded from here: https://code.google.com/p/macvim/downloads/list |
I have the same setup (but using 6f328ea; tried both with MacVim snapshot 66 and snapshot 68) and also get the error – both when invoking MacVim.app or The exact error I’m getting (right after launching) is
However, if I’m in a directory containing a
The editor subsequently crashes regardless of whether I select “OK” or “Cancel”. Here’s the output from the |
Just tried using the latest MacVim on my OS X Mountain Lion and everything works. So this is somehow caused by your machine configuration in some way, sorry. |
Any idea what could cause it? Would the fact that the plugin is compiled
|
The version of Python that YCM is linked to when being built and the version of Python linked into your Vim binary have to match, yes. If they don't, a problem like the one you're experiencing might ensue. |
Oh, it would actually be helpful if the install script could warn about this even though it of course makes sense. Is there an easier way of making (For now I’m changing it manually; not too bad since the change is restricted to a single line in the script.) |
Cool. I'll just compile MacVim myself. That should do it. Thanks.
|
Just an FYI to anyone who stumbles on this. An easy way to get the install command to work with MacVim if you've installed a custom Python binary using MacPorts or something:
That will alter your path for only the install command to make your system look to the standard binaries before your /opt binaries. So here's the note... This worked and now my precompiled MacVim that I downloaded works perfectly with YCM. However... vim does not because that was compiled with my /opt python binary. So I'm going to be compiling MacVim myself instead so everything is consistent. |
A hint: don’t. As the YCM readme file says, you should (in almost all cases) use the
” … and enjoy a command-line |
That would be much less prone to an error. I installed my system Vim so long ago I can't remember if there was a specific reason why. I guess I'll find out. |
TypeScript: Add GoToType command <!-- 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/458) <!-- Reviewable:end -->
Vim: MacVim Snapshot 68
YouCompleteMe: 2ed9ae7
A bit of the configure log is below
In MacVim I get
Does it require to be compiled with the exact version? The MacVim I'm using was prebuilt, but I suppose I could try to compile it from source as well.
The text was updated successfully, but these errors were encountered: