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
ImportError: $PREFIX/lib/python3.8/lib-dynload/_socket.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyByteArray_Type #3580
Comments
what happens if you do:
|
|
how about this:
|
|
In that case, the issue is with your vim/python configuration, not YCM. |
For the record, I would recommend using something like pyenv (or at least its python build thing) to build your custom python. I build Vim against pyenv pythons regularly without issue. |
@mova Hi! Did you solve this issue? I meet the same problem. After struggling with it for two days, I solved this problem. As @puremourning said, this issue is with your vim configuration(not python in fact). You just need to
before your compile the vim, hopefully this can help others who meet the same issue:-) |
Odd, I've never had to do that, but thanks for sharing! |
@moon548834 Thanks a lot. I switched to neovim, where the setup worked out of the box. |
For the record, another user was able to resolve a similar issue by ensuring The other solution is to use --with-python3interp=dynamic, but in my experience this has its own woes. |
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
insidethe brackets) before filing your issue:
Frequently Asked Questions section.
search.)
vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.version) I am using.
my issue, including what I expected 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.
Issue Details
I'm trying to get YCM to run with an old machine without root privileges.
As both python and vim are too old to be used, i need to set both of them up under a prefix in my home.
$PREFIX/bin
is added to the path and$PREFIX/lib
to the LD_LIBRARY_PATH.Vim
recompiling ycm
YCM crashes on startup.
This was not an issue when compiling python without the
--enable-shared
flag.Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
E492: Not an editor command: YcmDebugInfo
Contents of YCM, ycmd and completion engine logfiles
OS version, distribution, etc.
CentOs7
Output of build/install commands
The text was updated successfully, but these errors were encountered: