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

Jupyter AI installation failing on x86 macOS #858

Closed
dlqqq opened this issue Jun 25, 2024 · 1 comment · Fixed by #859
Closed

Jupyter AI installation failing on x86 macOS #858

dlqqq opened this issue Jun 25, 2024 · 1 comment · Fixed by #859
Labels
bug Something isn't working dependency:faiss-cpu Issues pertaining to `faiss-cpu`

Comments

@dlqqq
Copy link
Member

dlqqq commented Jun 25, 2024

Description

Running jlpm dev-install in a new environment on an x86 macOS platform currently results in this error:

...
@jupyter-ai/core:   Building wheel for faiss-cpu (pyproject.toml): started
@jupyter-ai/core:   Building wheel for faiss-cpu (pyproject.toml): finished with status 'error'
@jupyter-ai/core:   error: subprocess-exited-with-error
@jupyter-ai/core:
@jupyter-ai/core:   × Building wheel for faiss-cpu (pyproject.toml) did not run successfully.
@jupyter-ai/core:   │ exit code: 1
@jupyter-ai/core:   ╰─> [8 lines of output]
@jupyter-ai/core:       running bdist_wheel
@jupyter-ai/core:       running build
@jupyter-ai/core:       running build_py
@jupyter-ai/core:       running build_ext
@jupyter-ai/core:       building 'faiss._swigfaiss' extension
@jupyter-ai/core:       swigging faiss/faiss/python/swigfaiss.i to faiss/faiss/python/swigfaiss_wrap.cpp
@jupyter-ai/core:       swig -python -c++ -Doverride= -doxygen -Ifaiss -I/private/var/folders/z2/13q1_np9615dq05py2whx79w0000gs/T/pip-build-env-7w9t607n/overlay/lib/python3.11/site-packages/numpy/core/include -Ifaiss -I/usr/local/include -o faiss/faiss/python/swigfaiss_wrap.cpp faiss/faiss/python/swigfaiss.i
@jupyter-ai/core:       error: command 'swig' failed: No such file or directory
@jupyter-ai/core:       [end of output]
@jupyter-ai/core:
@jupyter-ai/core:   note: This error originates from a subprocess, and is likely not a problem with pip.
@jupyter-ai/core:   ERROR: Failed building wheel for faiss-cpu
@jupyter-ai/core: Successfully built jupyter_ai
@jupyter-ai/core: Failed to build faiss-cpu
@jupyter-ai/core: ERROR: Could not build wheels for faiss-cpu, which is required to install pyproject.toml-based projects

Context

This is due to a new release of faiss-cpu that occurred 2 days ago, which is missing x86 macOS wheels: kyamagu/faiss-wheels#109

@dlqqq dlqqq added the bug Something isn't working label Jun 25, 2024
@dlqqq
Copy link
Member Author

dlqqq commented Jun 25, 2024

Temporary workaround until next release: pip install faiss-cpu==1.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependency:faiss-cpu Issues pertaining to `faiss-cpu`
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant