Open olypros opened 7 years ago
I'm also using absolute path and following error is displayed. How did you solve this issue?
no field package.preload['misc.utils']
no file '/home/sbs/.luarocks/share/lua/5.1/misc/utils.lua'
no file '/home/sbs/.luarocks/share/lua/5.1/misc/utils/init.lua'
no file '/home/sbs/torch/install/share/lua/5.1/misc/utils.lua'
no file '/home/sbs/torch/install/share/lua/5.1/misc/utils/init.lua'
no file './misc/utils.lua'
no file '/home/sbs/torch/install/share/luajit-2.1.0-beta1/misc/utils.lua'
no file '/usr/local/share/lua/5.1/misc/utils.lua'
no file '/usr/local/share/lua/5.1/misc/utils/init.lua'
no file '/home/sbs/.luarocks/lib/lua/5.1/misc/utils.so'
no file '/home/sbs/torch/install/lib/lua/5.1/misc/utils.so'
no file '/home/sbs/torch/install/lib/misc/utils.so'
no file './misc/utils.so'
no file '/usr/local/lib/lua/5.1/misc/utils.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/sbs/.luarocks/lib/lua/5.1/misc.so'
no file '/home/sbs/torch/install/lib/lua/5.1/misc.so'
no file '/home/sbs/torch/install/lib/misc.so'
no file './misc.so'
no file '/usr/local/lib/lua/5.1/misc.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/sbs/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
/home/sbs/neuraltalk2/eval.lua:7: in main chunk
[C]: in function 'dofile'
.../sbs/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x5640f6477560
When im running the scripts while currently inside the root directory of project it works.
But if im running the scripts from outside the root directing by using absolute paths. It shows this error .