Skip to content
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

_socket.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type #3760

Closed
lianshaohua opened this issue Sep 16, 2020 · 3 comments
Closed

Comments

@lianshaohua
Copy link

lianshaohua commented Sep 16, 2020

Issue Details

Provide a clear description of the problem, including the following key
questions:
open vim with ycm plugin and error occurs,ycm can not work normally:
_socket.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type

# your python3 can not import ctypes,so this is not ycm bugs.

  • What did you do?
    1. sudo yum install libffi-devel gcc gcc-c++ zlib zlib-devel readline-devel openssl-devel bzip2-devel sqlite-devel
    2. Re-compile python3.x
    3. open vim with ycm plugin and it works well

  • What did you expect to happen?
    This is not bugs,it is python installation problem.

@puremourning
Copy link
Member

This is not bugs,it is python installation problem.

Agree.

@bstaletic
Copy link
Collaborator

We've seen problems with _socket before.

#2427 was caused by anaconda.
#2895 was caused by mixing 32bit vim and 64bit python.
#3580 was caused by incorrectly compiling vim.

@lianshaohua
Copy link
Author

We've seen problems with _socket before.

#2427 was caused by anaconda.
#2895 was caused by mixing 32bit vim and 64bit python.
#3580 was caused by incorrectly compiling vim.

They are different.
--with-python3interp=dynamic or export LD_FLAGS="-rdynamic" can not reslove.
The problem mentioned need to install deps-library ,re-configure and re-build python

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants