{"action":"created","issue":{"url":"https://api.github.com/repos/OpenNMT/Im2Text/issues/2","repository_url":"https://api.github.com/repos/OpenNMT/Im2Text","labels_url":"https://api.github.com/repos/OpenNMT/Im2Text/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/OpenNMT/Im2Text/issues/2/comments","events_url":"https://api.github.com/repos/OpenNMT/Im2Text/issues/2/events","html_url":"https://github.com/OpenNMT/Im2Text/issues/2","id":196830491,"number":2,"title":"how to specify the path of openNMT?","user":{"login":"loveJasmine","id":18051187,"avatar_url":"https://avatars.githubusercontent.com/u/18051187?v=3","gravatar_id":"","url":"https://api.github.com/users/loveJasmine","html_url":"https://github.com/loveJasmine","followers_url":"https://api.github.com/users/loveJasmine/followers","following_url":"https://api.github.com/users/loveJasmine/following{/other_user}","gists_url":"https://api.github.com/users/loveJasmine/gists{/gist_id}","starred_url":"https://api.github.com/users/loveJasmine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loveJasmine/subscriptions","organizations_url":"https://api.github.com/users/loveJasmine/orgs","repos_url":"https://api.github.com/users/loveJasmine/repos","events_url":"https://api.github.com/users/loveJasmine/events{/privacy}","received_events_url":"https://api.github.com/users/loveJasmine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-21T02:26:01Z","updated_at":"2016-12-21T05:06:43Z","closed_at":null,"body":"Suppose I had 'git pull' openNMT\r\n\r\n\r\nrzai@rzai00:~/prj/Im2Text$ CUDA_VISIBLE_DEVICES=1 th src/train.lua -phase train -gpu_id 1 -input_feed -model_dir model -image_dir data/images -data_path data/train.txt -val_data_path data/validate.txt -label_path data/labels.txt -vocab_file data/vocab.txt -batch_size 8 -beam_size 1 -max_num_tokens 150 -max_image_width 500 -max_image_height 160\r\nOpenNMT not found. Please enter the path to OpenNMT: \t\r\n/home/rzai/prj/OpenNMT\r\n/home/rzai/torch/install/bin/luajit: /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: /home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: module 'class' not found:No LuaRocks module found for class\r\n\tno field package.preload['class']\r\n\tno file '/home/rzai/.luarocks/share/lua/5.1/class.lua'\r\n\tno file '/home/rzai/.luarocks/share/lua/5.1/class/init.lua'\r\n\tno file '/home/rzai/torch/install/share/lua/5.1/class.lua'\r\n\tno file '/home/rzai/torch/install/share/lua/5.1/class/init.lua'\r\n\tno file './class.lua'\r\n\tno file '/home/rzai/torch/install/share/luajit-2.1.0-beta1/class.lua'\r\n\tno file '/usr/local/share/lua/5.1/class.lua'\r\n\tno file '/usr/local/share/lua/5.1/class/init.lua'\r\n\tno file '/home/rzai/prj/OpenNMT/class.lua'\r\n\tno file '/home/rzai/.luarocks/lib/lua/5.1/class.so'\r\n\tno file '/home/rzai/torch/install/lib/lua/5.1/class.so'\r\n\tno file '/home/rzai/torch/install/lib/class.so'\r\n\tno file './class.so'\r\n\tno file '/usr/local/lib/lua/5.1/class.so'\r\n\tno file '/usr/local/lib/lua/5.1/loadall.so'\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t/home/rzai/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'\r\n\tsrc/train.lua:23: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...rzai/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk\r\n\t[C]: at 0x00406670\r\nrzai@rzai00:~/prj/Im2Text$"},"comment":{"url":"https://api.github.com/repos/OpenNMT/Im2Text/issues/comments/268436600","html_url":"https://github.com/OpenNMT/Im2Text/issues/2#issuecomment-268436600","issue_url":"https://api.github.com/repos/OpenNMT/Im2Text/issues/2","id":268436600,"user":{"login":"da03","id":5753959,"avatar_url":"https://avatars.githubusercontent.com/u/5753959?v=3","gravatar_id":"","url":"https://api.github.com/users/da03","html_url":"https://github.com/da03","followers_url":"https://api.github.com/users/da03/followers","following_url":"https://api.github.com/users/da03/following{/other_user}","gists_url":"https://api.github.com/users/da03/gists{/gist_id}","starred_url":"https://api.github.com/users/da03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/da03/subscriptions","organizations_url":"https://api.github.com/users/da03/orgs","repos_url":"https://api.github.com/users/da03/repos","events_url":"https://api.github.com/users/da03/events{/privacy}","received_events_url":"https://api.github.com/users/da03/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T05:06:43Z","updated_at":"2016-12-21T05:06:43Z","body":"Seems that you need to install `class` by this command: `luarocks install class`."}}
{"actor":{"display_login":"da03"}}