Skip to content
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

[BUG] Windows model downloads not working as expected #4

Open
yourbuddyconner opened this issue Apr 4, 2023 · 3 comments
Open

[BUG] Windows model downloads not working as expected #4

yourbuddyconner opened this issue Apr 4, 2023 · 3 comments

Comments

@yourbuddyconner
Copy link
Collaborator

User reports that models on their Windows system aren't being properly downloaded.

Possible issues:

  • Mismatched paths (windows likes backslashes instead of forward slashes for some reason)
@Dueel
Copy link

Dueel commented Apr 6, 2023

Hello there,
I was looking around at the issue and I discovered that moving the gpt4all-lora-quantized-win64.exe file (renamed to gpt4all.exe) from the gpt4all chat folder to .nomic/ directory appears to have resolved the problem.

@dstults
Copy link

dstults commented Apr 6, 2023

I can confirm, the root cause is that the source code downloads the .exe file as gpt4all (without the file extension) but the second you try to run an executable in Windows-based CLIs that doesn't explicitly have .exe or other file type causes the child_process that spawns to not know what default behavior to assume with the file and thus it will fail to execute.

Simply by keeping the name "as-is" and running the exe file that you download as an exe file should resolve the problem.
The workaround I used because I didn't have to worry about breaking anyone else's computer was this:

...
// Added .exe here:
this.executablePath = `${os.homedir()}/.nomic/gpt4all.exe`;
...

@arielff3
Copy link

arielff3 commented Apr 6, 2023

I opened a pr for this: #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants