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

Segfault when used with tensorflow #1

Closed
juve opened this issue Jul 31, 2019 · 2 comments · Fixed by #2
Closed

Segfault when used with tensorflow #1

juve opened this issue Jul 31, 2019 · 2 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@juve
Copy link

juve commented Jul 31, 2019

Thanks for working on these wheels. They are very useful.

On Debian Stretch with Python 3.6, I get a segfault if I try to import faiss before tensorflow, but not vice-versa.

This should reproduce the issue:

docker run --rm -it python:3.6-stretch bash
pip install faiss-cpu tensorflow
python -c "import faiss; import tensorflow" # segfaults
python -c "import tensorflow; import faiss" # works

The segfault only occurs with faiss-cpu, it does not occur with faiss-gpu.

@kyamagu kyamagu added the bug Something isn't working label Aug 6, 2019
@kyamagu
Copy link
Owner

kyamagu commented Aug 6, 2019

@juve Thanks for reporting this. Likely conflict with a common dependency library (like glibc), where tensorflow is requiring newer version. faiss-gpu is distributed with manylinux2010 package and might be aligned with tensorflow's dependency, whereas faiss-cpu is manylinux1.

@kyamagu
Copy link
Owner

kyamagu commented Aug 6, 2019

just uploaded manylinux2010 wheel packages for faiss-cpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants