faiss-wheels: Failure to serialize in joblib

Describe the bug Consistently getting the following error when installing the faiss-cpu==1.7.3 module on Mac OS (Silicon M2 Chip): ModuleNotFoundError: No module named ‘faiss.swigfaiss_avx2’

To Reproduce pip install faiss-cpu==1.7.3

Expected behavior When installing the package, it is expected that the package scripts should include a script called:

swigfaiss_avx2.py

But this is missing when trying to install the module on my mac and I think this is causing the issue

Desktop (please complete the following information):

  • OS: Mac
  • Architecture: arm64
  • Python: 3.9.16
  • Version: v1.7.3

Additional context This happens when trying to “joblib.load()”

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Ok, this will need to investigate why the arch match is not working. Add verbose flag

ERROR: faiss_cpu-1.7.3-cp311-cp311-macosx_11_0_arm64.whl is not a supported wheel on this platform.