jcjohnson / torch-rnn

Efficient, reusable RNNs and LSTMs for torch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

module 'bit' not found:No LuaRocks module found for bit

RobertMolesme opened this issue · comments

I'm getting this error when trying to run train.lua, what can I do?

box:torch-rnn-master jules$ th train.lua -input_h5 tiny-shakespeare.h5 -input_json my_data.json /Users/jules/anaconda/bin/lua: /Users/jules/anaconda/share/lua/5.3/trepl/init.lua:384: /Users/jules/anaconda/share/lua/5.3/trepl/init.lua:384: /Users/jules/anaconda/share/lua/5.3/trepl/init.lua:384: module 'bit' not found:No LuaRocks module found for bit no field package.preload['bit'] no file '/Users/awiltschko/.luarocks/share/lua/5.3/bit.lua' no file '/Users/awiltschko/.luarocks/share/lua/5.3/bit/init.lua' no file '/Users/jules/anaconda/share/lua/5.3/bit.lua' no file '/Users/jules/anaconda/share/lua/5.3/bit/init.lua' no file '/Users/jules/anaconda/lib/lua/5.3/bit.lua' no file '/Users/jules/anaconda/lib/lua/5.3/bit/init.lua' no file './bit.lua' no file './bit/init.lua' no file '/Users/jules/.luarocks/share/lua/5.3/bit.lua' no file '/Users/jules/.luarocks/share/lua/5.3/bit/init.lua' no file '/Users/awiltschko/.luarocks/lib/lua/5.3/bit.so' no file '/Users/jules/anaconda/lib/lua/5.3/bit.so' no file '/Users/jules/anaconda/lib/lua/5.3/loadall.so' no file './bit.so' no file '/Users/jules/.luarocks/lib/lua/5.3/bit.so' stack traceback: [C]: in function 'error' /Users/jules/anaconda/share/lua/5.3/trepl/init.lua:384: in function 'require' train.lua:6: in main chunk [C]: in function 'dofile' /Users/jules/anaconda/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: in ?

Thanks!

Apparently it has something to do with the fact luabitop is not compatible with lua 5.3, any suggestions?

I've never used Lua 5.3 so I'm not sure - I guess the easy solution is to
downgrade to Lua 5.2.

On Fri, Aug 12, 2016 at 4:58 PM, RobertMolesme notifications@github.com
wrote:

Apparently it has something to do with the fact luabitop is not compatible
with lua 5.3, any suggestions?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#127 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACl7-lWApTv6euyihlTvPvnZl188TGaWks5qfQijgaJpZM4Jhr55
.

Alright, thanks!

Hi,
i'm using Lua 5.3.3 and i have to do bitwise operations, such as ">>" (right shift) and "&" (and) like Java or C.
Initially, i used them as the manual shows, but the parser told me that an unexpected symbol was found near ">" ... so i changed to the relative function, but Lua cannot find package "bit" !!!
Any suggestions, please?

I faced the same problem with lua 5.2.3 :/