Executable not found in path on Windows
See original GitHub issueHi !
Node version: 12.13.1 OS: Windows 10
I’m trying to create a simple fastText model for text classification, but the lib is not working fine on Windows. As soon as I add this code:
const fastText = new FastText({
serializeTo: './models/fastText',
trainFile: './trainingData.txt'
});
I have the error:
Error: executable not found in path
at new FastText (C:\Users\madelpech\[...]\node_modules\fasttext.js\lib\index.js:104:23)
I have looked to the code and in the index.js file line 99 you are calling this._options.bin = Util.GetBinFolder('fasttext');
. I have checked the binaries and it appears that the Windows binary is not named fasttext
but fastText.exe
instead. This should be the issue here.
Can you have a look and tell me if I am right?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Executable not found despite PATH variable correctly set
Really weird behaviour on my system. I can execute xilperl.exe in the following way on my system:
Read more >docker: executable file not found in $PATH - Stack Overflow
If the error is from a shell script, the issue is often with the first line of that script (e.g. the #!/bin/bash )....
Read more >exec: "cmd": executable file not found in %PATH%
I added C:\Windows\System32\ to the path, that is where cmd.exe is. And rebooted I see it in the PATH prompt. I tried running...
Read more >Executable file not found in %PATH% - Infrastructure
I have confirmed the path to powershell.exe is indeed in the SYSTEM path and powershell scripts and command works everywhere else except for...
Read more >nvm use throws exec: "cmd": executable file not found ... - GitHub
Issue: When I run "nvm use 16.13.1" I got this error: exec: "cmd": executable file not found in %PATH% How To Reproduce: Remove...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @feernando998
Honestly, I can’t remember what was my final thought on this… I think that I ended changing the exe name for my local installation since the deployed image was based on Linux and didn’t need correction. This enabled me to develop on my local and then I could check on the image built that everything was fine.
@feernando998 @MarcDelp thank you guys, feel free to submit a PR to fix this issue, currently I do not have a Windows machine to test it, but if you can submit a PR, so that it will go in in the repo.
Thanks a lot.