Giter Club home page Giter Club logo

Comments (4)

ewfian avatar ewfian commented on July 19, 2024

@masasso Thank you for reporting the issue.
I tried the above steps but didn't reproduce. From the runtime error logs, it seems that the compiled binary was not found.

Please try these options

  • Create a blank nodejs project, install faiss-node, and run the given code see if it works. This is to confirm whether the problem is related to VS Code Extension.
  • Provide detailed npm install faiss-node --verbose logs to troubleshoot whether the installation of prebuild packages failed.
  • Please provide the smallest reproducible VS Code project for investigation.
  • Try to compile the binary locally.

from faiss-node.

tro9999 avatar tro9999 commented on July 19, 2024

@masasso I got similar problems with OSX setup. I tried clean install and tested the example. I got an error indicating there is something "missing".... Library not loaded: '/usr/local/opt/libomp/lib/libomp.dylib'
After "brew install libomp"... example works as expected. Note I've OSX not pure linux,... I hope this helps.

from faiss-node.

ewfian avatar ewfian commented on July 19, 2024

@masasso I got similar problems with OSX setup. I tried clean install and tested the example. I got an error indicating there is something "missing".... Library not loaded: '/usr/local/opt/libomp/lib/libomp.dylib'
After "brew install libomp"... example works as expected. Note I've OSX not pure linux,... I hope this helps.

@tro9999 libomp is a dependency under OSX, I have bundled it in #5 and a new version will be released.

from faiss-node.

jjspace avatar jjspace commented on July 19, 2024

I just ran into this issue too because bindings seemed to be looking for the .node file starting from the wrong directory as shown in the first comment. After digging through a bunch of other issues on google this one from node-bindings lead to a working solution TooTallNate/node-bindings#43

Just add faiss-node as an external in the webpack config.

  externals: {
    // modules added here also need to be added in the .vscodeignore file
    "faiss-node": "commonjs faiss-node",
  },

then the sample code above and my own code using Faiss worked fine in a VSCode extension.

from faiss-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.