Suravi icon indicating copy to clipboard operation
Suravi copied to clipboard

Error in Windows 10 x64

Open fithisux opened this issue 7 years ago • 9 comments

I get the following error on windows (after running the luaenv.bat where I fixed the folder of lua)

C:\winoss\consolez>cd c:\work\DeepStack-Leduc\Source

c:\work\DeepStack-Leduc\Source>lua Tree\Tests\test_tree_builder.lua
lua: c:\winoss\lua53\share\lua\5.3\torch\init.lua:13: cannot load 'c:\winoss\lua53\bin\libtorch.dll'
stack traceback:
        [C]: in function 'libpaths.require'
        c:\winoss\lua53\share\lua\5.3\torch\init.lua:13: in main chunk
        [C]: in function 'require'
        .\Settings\arguments.lua:4: in main chunk
        [C]: in function 'require'
        Tree\Tests\test_tree_builder.lua:1: in main chunk
        [C]: in ?

c:\work\DeepStack-Leduc\Source>

Any ideas what I need to install additionally? My PATH is as much clean as I can. I took lua from

Ravi-Distro 0.5.1 alpha release

fithisux avatar Nov 27 '18 11:11 fithisux

Hi, I think there are some torch scripts that you may need to update.can you search for any file where the default path is set? Sorry I don't have access to my machine right now but I can check tonight

dibyendumajumdar avatar Nov 27 '18 11:11 dibyendumajumdar

Thank you for the comment. Will search now.

fithisux avatar Nov 27 '18 11:11 fithisux

Unfortunately, I could not find anything related.

fithisux avatar Nov 27 '18 18:11 fithisux

Hi, did you look at share/lua/5.3/torch/paths.lua in the distro?

dibyendumajumdar avatar Nov 27 '18 18:11 dibyendumajumdar

Please could you confirm that installing under \Software\lua53 works? I will test how to move it to another location.

dibyendumajumdar avatar Nov 27 '18 18:11 dibyendumajumdar

I did a quick test. If you modify share/lua/5.3/torch/paths.lua in the distro to match your installation folder it should work.

dibyendumajumdar avatar Nov 27 '18 21:11 dibyendumajumdar

Hi, I did the change but the error persists. It talks about the DLL, not a path. How did you compile it? Do I need a specific VC runtime?

fithisux avatar Nov 28 '18 08:11 fithisux

It is not a bug. I did not install Visual Studio 2017 redistributable. Sorry for this.

fithisux avatar Nov 28 '18 08:11 fithisux

No probs. Please let me know if you face any other issues

dibyendumajumdar avatar Nov 28 '18 09:11 dibyendumajumdar