microsoft / SPTAG

A distributed approximate nearest neighborhood search (ANN) library which provides a high quality vector index build, search and distributed online serving toolkits for large scale vector search scenario.
MIT License
4.79k stars 582 forks source link

Import SPTAG Failed #396

Open JingyuanHe1222 opened 1 year ago

JingyuanHe1222 commented 1 year ago

Describe the bug After building SPTAG and passing the tests in SPTAGTest.exe, I tried to run the Tutorial.ipynb codes in juptyer notebook but it fails when:

image

I checked #75 and #55 but as the above image shows, I should have the right sys path and the right python version attached. I also check CmakeCache.txt and the python path is python 3.9.

But I realized there might be some files missing in my \build\Release folder comparing to the error message to the above two posts. And upon compiling ALL_BUILD I did get failure from not finding SPTAGLib.lib despite that SPTAGTest.exe passed. I attached the file I have below: image

To Reproduce Basically following the test of installing SPTAG:

  1. install swig, boost, cmake and added to environment variables
  2. clone SPTAG, do cmake as instructed, open SPTAGLib.sln in visual studio and compile ALL_BUILD
  3. add to environment variables
  4. run Tutorial.ipynb

Desktop (please complete the following information): [windows 11 home] [64-bit, x64]

Could any try to see what's wrong with building SPTAG? Thank you so much!!