{"action":"created","issue":{"url":"https://api.github.com/repos/torch/trepl/issues/37","labels_url":"https://api.github.com/repos/torch/trepl/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/torch/trepl/issues/37/comments","events_url":"https://api.github.com/repos/torch/trepl/issues/37/events","html_url":"https://github.com/torch/trepl/issues/37","id":113075195,"number":37,"title":"th cannot import packages","user":{"login":"caseus-viridis","id":8757748,"avatar_url":"https://avatars.githubusercontent.com/u/8757748?v=3","gravatar_id":"","url":"https://api.github.com/users/caseus-viridis","html_url":"https://github.com/caseus-viridis","followers_url":"https://api.github.com/users/caseus-viridis/followers","following_url":"https://api.github.com/users/caseus-viridis/following{/other_user}","gists_url":"https://api.github.com/users/caseus-viridis/gists{/gist_id}","starred_url":"https://api.github.com/users/caseus-viridis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseus-viridis/subscriptions","organizations_url":"https://api.github.com/users/caseus-viridis/orgs","repos_url":"https://api.github.com/users/caseus-viridis/repos","events_url":"https://api.github.com/users/caseus-viridis/events{/privacy}","received_events_url":"https://api.github.com/users/caseus-viridis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-23T18:30:25Z","updated_at":"2015-10-26T19:29:20Z","closed_at":null,"body":"Same problem as in [Issue #33] (https://github.com/torch/trepl/issues/33)\r\n```\r\nth> require 'nn'\r\n/Users/___/torch/install/share/lua/5.1/trepl/init.lua:363: /Users/___/torch/install/share/lua/5.1/trepl/init.lua:363: loop or previous error loading module 'torch'\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t/Users/___/torch/install/share/lua/5.1/trepl/init.lua:363: in function 'require'\r\n\t[string \"_RESULT={require 'nn'}\"]:1: in main chunk\r\n\t[C]: in function 'xpcall'\r\n\t/Users/___/torch/install/share/lua/5.1/trepl/init.lua:630: in function 'repl'\r\n\t.../___/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:187: in main chunk\r\n\t[C]: at 0x01020a11b0\t\r\n```\r\n`luajit -l xlua` gives:\r\n```\r\nluajit: error loading module 'libsys' from file '/Users/___/torch/install/lib/lua/5.1/libsys.so':\r\n\tdlopen(/Users/___/torch/install/lib/lua/5.1/libsys.so, 6): Library not loaded: libmkl_intel_lp64.dylib\r\n  Referenced from: /Users/___/torch/install/lib/lua/5.1/libsys.so\r\n  Reason: image not found\r\nstack traceback:\r\n\t[C]: at 0x010a86f960\r\n\t[C]: in function 'require'\r\n\t/Users/___/torch/install/share/lua/5.1/sys/init.lua:14: in main chunk\r\n\t[C]: in function 'require'\r\n\t/Users/___/torch/install/share/lua/5.1/xlua/init.lua:37: in main chunk\r\n\t[C]: at 0x010a8702c0\r\n\t[C]: at 0x010a7f71b0\r\n\r\n```\r\nRunning on MAC OSX 10.11"},"comment":{"url":"https://api.github.com/repos/torch/trepl/issues/comments/151258040","html_url":"https://github.com/torch/trepl/issues/37#issuecomment-151258040","issue_url":"https://api.github.com/repos/torch/trepl/issues/37","id":151258040,"user":{"login":"gcr","id":45252,"avatar_url":"https://avatars.githubusercontent.com/u/45252?v=3","gravatar_id":"","url":"https://api.github.com/users/gcr","html_url":"https://github.com/gcr","followers_url":"https://api.github.com/users/gcr/followers","following_url":"https://api.github.com/users/gcr/following{/other_user}","gists_url":"https://api.github.com/users/gcr/gists{/gist_id}","starred_url":"https://api.github.com/users/gcr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcr/subscriptions","organizations_url":"https://api.github.com/users/gcr/orgs","repos_url":"https://api.github.com/users/gcr/repos","events_url":"https://api.github.com/users/gcr/events{/privacy}","received_events_url":"https://api.github.com/users/gcr/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T19:29:20Z","updated_at":"2015-10-26T19:29:20Z","body":"Hm. Does enthought install mkl? Where is the mkl library on your machine?\r\n\r\nAs a workaround, deleting `./pkg/torch/lib/TH/cmake/FindMKL.cmake` and rebuilding torch from scratch with `./clean.sh; ./install.sh` completely fixes the issue. (What cmake can't find won't hurt it, right?)\r\n\r\nBut not sure why the library fails to load. Are there any people who use torch with MKL without any issues?"}}