-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
MS Azure - Could not import faiss-node ... faiss-node.node is not a valid Win32 application #6148
Comments
Hey there, @jacknkandy! I'm here to help you with your technical questions and bug fixes. Let's tackle this issue together while we wait for a human maintainer to jump in. To resolve the error related to
By following these steps, you can ensure that the Azure Web App service is configured to support native modules like |
Just an update - I switched out and set up a new Linux-based Web App and was able to get my app to run without any hiccups. I believe there is some compatibility issue with the Windows-based build of |
Updated comment text: Hi, @jacknkandy! I'm helping the LangChain JS team manage their backlog and am marking this issue as stale. From what I understand, you initially faced difficulties importing the Could you please confirm if this issue is still relevant to the latest version of the LangChain JS repository? If it is, let the team know by commenting here. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you! |
Checked other resources
Example Code
import statement:
import { FaissStore } from '@langchain/community/vectorstores/faiss';
package.json
GitHub Actions:
Error Message and Stack Trace (if applicable)
Could not import faiss-node. Please install faiss-node as a dependency with, e.g.
npm install -S faiss-node
.\n\nError: \\?\C:\home\site\wwwroot\node_modules\faiss-node\build\Release\faiss-node.node is not a valid Win32 application.\r\n\\?\C:\home\site\wwwroot\node_modules\faiss-node\build\Release\faiss-node.nodeDescription
Hi there,
I am having issues getting a sample app to run on an Azure Web App service. I can confirm that my app is working locally fine (MacOS) but am getting the following error after having built and deployed to a Windows-based Azure Web App service.
I am deploying via a GitHub actions deployment script, and have made sure that it is being built and deployed for using a Windows-based build server.
I can see a variety of similar issues reported for AWS etc. but cannot find a solution that works for me.
#5843
#5164
#4027
#3941
My error is slightly different as it is complaining that the
faiss-node.node
file is not a valid Win32 application.I can locate the file mentioned in the path, running Node v18 on the Web App.
I have tried installing the package locally using
npm i faiss-node
via my Azure Web app, this didn't work. Additionally I tried dropping in the files from the pre-built release from faiss-node-v0.5.1-napi-v6-win32-x64.tar.gz again this didn't change anything.Any help or guidance would be appreciated!
System Info
platform: Windows
langchain 0.2.10
node 18.19.1
The text was updated successfully, but these errors were encountered: