-
Notifications
You must be signed in to change notification settings - Fork 23
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
Torch not found #4
Comments
You need to
Hope this helps! |
The first things to check with dll load errors are:
|
Could somebody help me?
|
Solution found :-) |
Hello, I downloaded Windows Torch 64-bit version, and manually added paths like shows following image (as setpaths didn't seem to work): After doing cd C:\torch\bin\luajit, require('torch') and torch.test(), it seems to work, as the word PASS is printed, though the encoding doesn't shows correctly: But when I try to run it on Visual Studio Code, it doesn't work Any ideas about it? |
@ayrtondenner @vaclavmuller: setpaths.cmd sets the paths only for the command prompt from which it is called, so yes, you have to either issue these commands successively in a single command prompt:
or you can add the paths permanently to the system paths by yourself. @ayrtondenner: Are you trying to use Torch in Python? This version is for Lua. You might want to take a look at PyTorch. |
Didn't know the difference between both versions, sorry. Just installed PyTorch via conda install, now it's working properly, thanks. |
No problem, glad to hear that you got PyTorch working! |
@hiili : Can we set paths such that "th" command is available across different terminal windows ? |
@Saahiljeet-Singh: Would it solve your problem if you add the paths manually to your system-wide environment variables? |
@hiili hi,same problem here. the 'th' command can't be found and it seems that adding the paths manually to system-wide environment variables doesn't work. |
Hi! I'm not working on this actively anymore and don't have it on my computer at the moment, so I can't test things on my end unfortunately. Have you made sure that you have all the vars set that are modified in setpaths.cmd? Also, have you restarted the process (command prompt?) in which you try to use Torch after adding the paths? |
I did set all the vars in the setpaths.cmd. And I have tried to restart the process however, the 'th' command can't be found neither before nor after I restart the process. But I can use the 'luajit' command without run the setpaths.cmd now. Does it has the same function with the 'th' command? |
hello, Weird issue here. if I run the cmd file, then require('torch') returns no error. if i don't, then it return error just like yours. Fun thing here, I have set the system variable manually. and I am fairly sure that I correctly set the variables, any idea? Thanks, |
Hi, I am using this torch with lua. and my lua file is in D drive as the torch is installed in the C:/torch. does the lua file needs to be in the same directory as the torch? Thanks, |
downloaded 64 bits version, ran paths, then ran
luajit, I get some console that says th> but when I try to run torch.Tensor{1,2,3} it says attempt to call global torch. Any ideas :/.
earlier with a totally different branch of torch for windows it couldnt load torch.dll into lua.
The text was updated successfully, but these errors were encountered: