dibyendumajumdar / Suravi

Suravi is a small distribution of Ravi/Lua 5.3 with batteries such as cjson, lpeglabel, luasocket, penlight, torch7, luv, luaossl
65 stars 3 forks source link

Error in Windows 10 x64 #8

Open fithisux opened 5 years ago

fithisux commented 5 years ago

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

dibyendumajumdar commented 5 years ago

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

fithisux commented 5 years ago

Thank you for the comment. Will search now.

fithisux commented 5 years ago

Unfortunately, I could not find anything related.

dibyendumajumdar commented 5 years ago

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

dibyendumajumdar commented 5 years ago

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

dibyendumajumdar commented 5 years ago

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.

fithisux commented 5 years ago

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 commented 5 years ago

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

dibyendumajumdar commented 5 years ago

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