bungle / lua-resty-session

Session library for OpenResty – flexible and secure
BSD 2-Clause "Simplified" License
320 stars 111 forks source link

Why I am getting error table.isempty not found? #180

Open jmaocanada opened 3 months ago

jmaocanada commented 3 months ago

Please kindly advise what I possibly missed.

2024/08/20 19:18:13 [error] 118765#118765: *1 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/resty/session.lua:14: module 'table.isempty' not found:
        no field package.preload['table.isempty']
        no file './table/isempty.lua'
        no file '/usr/share/luajit-2.1.0-beta3/table/isempty.lua'
        no file '/usr/local/share/lua/5.1/table/isempty.lua'
        no file '/usr/local/share/lua/5.1/table/isempty/init.lua'
        no file '/usr/share/lua/5.1/table/isempty.lua'
        no file '/usr/share/lua/5.1/table/isempty/init.lua'
        no file './table/isempty.so'
        no file '/usr/local/lib/lua/5.1/table/isempty.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/table/isempty.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './table.so'
        no file '/usr/local/lib/lua/5.1/table.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.1/table.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
bungle commented 2 months ago

@jmaocanada you need OpenResty fork of LuaJIT: https://github.com/openresty/luajit2

bungle commented 2 months ago

not much used in this project so we could perhaps have alternative with Lua's next function.