question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Executable not found in path on Windows

See original GitHub issue

Hi !

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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
MarcDelpcommented, Aug 31, 2020

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.

1reaction
loretoparisicommented, Sep 2, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found