{"action":"created","issue":{"url":"https://api.github.com/repos/jcjohnson/torch-rnn/issues/58","repository_url":"https://api.github.com/repos/jcjohnson/torch-rnn","labels_url":"https://api.github.com/repos/jcjohnson/torch-rnn/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/jcjohnson/torch-rnn/issues/58/comments","events_url":"https://api.github.com/repos/jcjohnson/torch-rnn/issues/58/events","html_url":"https://github.com/jcjohnson/torch-rnn/issues/58","id":146747699,"number":58,"title":" error on `train.lua`: expected near ')' at line 579","user":{"login":"nylki","id":1710598,"avatar_url":"https://avatars.githubusercontent.com/u/1710598?v=3","gravatar_id":"","url":"https://api.github.com/users/nylki","html_url":"https://github.com/nylki","followers_url":"https://api.github.com/users/nylki/followers","following_url":"https://api.github.com/users/nylki/following{/other_user}","gists_url":"https://api.github.com/users/nylki/gists{/gist_id}","starred_url":"https://api.github.com/users/nylki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nylki/subscriptions","organizations_url":"https://api.github.com/users/nylki/orgs","repos_url":"https://api.github.com/users/nylki/repos","events_url":"https://api.github.com/users/nylki/events{/privacy}","received_events_url":"https://api.github.com/users/nylki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-07T21:32:06Z","updated_at":"2016-04-11T13:34:08Z","closed_at":null,"body":"I installed all dependencies and preprocessed a txt (tried to with the provided shakespeare.txt). However `train.lua` throws some error. What could be the cause of this?\r\n```\r\n➜  torch-rnn git:(master) ✗ th train.lua -input_h5 my_data.h5 -input_json my_data.json\r\n/home/tom/gits/torch/install/bin/luajit: /home/tom/gits/torch/install/share/lua/5.1/trepl/init.lua:363: /home/tom/gits/torch/install/share/lua/5.1/trepl/init.lua:363: /home/tom/gits/torch/install/share/lua/5.1/hdf5/ffi.lua:56: ';' expected near ')' at line 579\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t/home/tom/gits/torch/install/share/lua/5.1/trepl/init.lua:363: in function 'require'\r\n\ttrain.lua:6: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...gits/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk\r\n\t[C]: at 0x00405d60\r\n```"},"comment":{"url":"https://api.github.com/repos/jcjohnson/torch-rnn/issues/comments/208345746","html_url":"https://github.com/jcjohnson/torch-rnn/issues/58#issuecomment-208345746","issue_url":"https://api.github.com/repos/jcjohnson/torch-rnn/issues/58","id":208345746,"user":{"login":"gp-huang","id":13152353,"avatar_url":"https://avatars.githubusercontent.com/u/13152353?v=3","gravatar_id":"","url":"https://api.github.com/users/gp-huang","html_url":"https://github.com/gp-huang","followers_url":"https://api.github.com/users/gp-huang/followers","following_url":"https://api.github.com/users/gp-huang/following{/other_user}","gists_url":"https://api.github.com/users/gp-huang/gists{/gist_id}","starred_url":"https://api.github.com/users/gp-huang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gp-huang/subscriptions","organizations_url":"https://api.github.com/users/gp-huang/orgs","repos_url":"https://api.github.com/users/gp-huang/repos","events_url":"https://api.github.com/users/gp-huang/events{/privacy}","received_events_url":"https://api.github.com/users/gp-huang/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T13:34:08Z","updated_at":"2016-04-11T13:34:08Z","body":"Hi, Justin,\r\n\r\nSame problem here, and it persists.\r\n\r\nI installed torch-hd5 locally on ubuntu 14.04, following 'https://github.com/deepmind/torch-hdf5/blob/master/doc/usage.md'\r\nMessage:\r\n`hdf5 0-0 is now built and installed in /people/huang/tools/torch/install/ (license: BSD)`\r\n\r\nI tried to run on a cluster with gpu, and train.lua fails because of hdf5.\r\n\r\nEnvironment settings\r\nset torch_rnn=/people/huang/tools/torch-rnn\r\nsetenv PATH /people/huang/tools/torch/install/bin:${PATH}  \r\nsetenv LD_LIBRARY_PATH /people/huang/tools/torch/install/lib:${LD_LIBRARY_PATH}\r\nsetenv PATH /usr/local/cuda/bin:${PATH}\r\nsetenv LD_LIBRARY_PATH /usr/local/cuda/lib64:${LD_LIBRARY_PATH}\r\nsetenv PYTHONPATH /people/huang/local/canopy/User/lib/python2.7/site-packages/\r\n\r\nError message when running train.lua\r\n`th $torch_rnn/train.lua -input_h5 $tmp/lm_lstm_torch/data/my_data.h5 -input_json $tmp/lm_lstm_torch/data/my_data.json -model_type lstm -num_layers 3 -rnn_size 512 -gpu_backend opencl > $tmp/lm_lstm_torch/lm_lstm_torch.log\r\n/people/huang/tools/torch/install/bin/luajit: ...e/huang/tools/torch/install/share/lua/5.1/trepl/init.lua:363: ...e/huang/tools/torch/install/share/lua/5.1/trepl/init.lua:363: ...ple/huang/tools/torch/install/share/lua/5.1/hdf5/ffi.lua:29: libhdf5.so: cannot open shared object file: No such file or directory\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t...e/huang/tools/torch/install/share/lua/5.1/trepl/init.lua:363: in function 'require'\r\n\t/people/huang/tools/torch-rnn/train.lua:6: in main chunk\r\n\t[C]: in function 'dofile'\r\n\t...ools/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk\r\n\t[C]: at 0x00406670\r\n`\r\n $tmp/lm_lstm_torch/lm_lstm_torch.log\r\n`/people/huang/tools/torch/install/share/lua/5.1/hdf5/init.lua:15 Unable to find the HDF5 lib we were built against - trying to find it elsewhere`\r\n"}}