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

loop or previous error loading module 'torch' #67

Open
daxiji opened this issue Mar 25, 2019 · 1 comment
Open

loop or previous error loading module 'torch' #67

daxiji opened this issue Mar 25, 2019 · 1 comment

Comments

@daxiji
Copy link

daxiji commented Mar 25, 2019

Hi,I ever saw other similar issues, but it's a little bit different…I don't know how to solve it.
Can you give me some suggestions?

when I run "th …… .lua"
/home/liming/torch/install/bin/luajit: /home/liming/torch/install/share/lua/5.1/trepl/init.lua:389: /home/liming/torch/install/share/lua/5.1/trepl/init.lua:389: loop or previous error loading module 'torch' stack traceback: [C]: in function 'error' /home/liming/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' main_test_bound_realsense.lua:1: in main chunk [C]: in function 'dofile' ...ming/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x55cb16a8e0e0

"th" is okay. But "th> require 'nn'
/home/liming/torch/install/share/lua/5.1/trepl/init.lua:389: /home/liming/torch/install/share/lua/5.1/trepl/init.lua:389: loop or previous error loading module 'torch' stack traceback: [C]: in function 'error' /home/liming/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' [string "_RESULT={require 'nn'}"]:1: in main chunk [C]: in function 'xpcall' /home/liming/torch/install/share/lua/5.1/trepl/init.lua:661: in function 'repl' ...ming/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk [C]: at 0x55e28d56d0e0

and "luajit -ltorch" "luajit -llibtorch"
luajit: /home/liming/torch/install/share/lua/5.1/torch/init.lua:13: cannot load '/home/liming/torch/install/lib/lua/5.1/libtorch.so' stack traceback: [C]: in function 'require' /home/liming/torch/install/share/lua/5.1/torch/init.lua:13: in main chunk [C]: at 0x55abc7ff99e0 [C]: at 0x55abc7f950e0
luajit: error loading module 'libtorch' from file '/home/liming/torch/install/lib/lua/5.1/libtorch.so': libgfortran.so.4: cannot open shared object file: No such file or directory stack traceback: [C]: at 0x55c30ab91640 [C]: at 0x55c30ab819e0 [C]: at 0x55c30ab1d0e0

I also check the path "~/torch/install/lib"
libluaT.so.0 exits

@daxiji
Copy link
Author

daxiji commented Mar 25, 2019

@soumith

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

1 participant