torch / tds

Torch C data structures
Other
80 stars 25 forks source link

tostring and pairs methods don't work with Lua 5.1 #29

Closed ili3p closed 8 years ago

ili3p commented 8 years ago

Error log:

.../torch/install/share/lua/5.1/tds/hash.lua:150: bad argument #1 to 'pairs' (table expected, got userdata)
stack traceback:
        [C]: in function 'pairs'
        ...stallations/torch/install/share/lua/5.1/tds/hash.lua:150: in function <...stallations/torch/install/share/lua/5.1/tds/hash.lua:136>
        [C]: ?
        [C]: in function 'tostring'

I get the same error for Vec too. And, as one can see from the log, the pairs(d) methods also don't work.

The error is only in Lua 5.1. Now I read that only works with 5.2. Maybe the README should have clearer Requirements section.