lua-hashings icon indicating copy to clipboard operation
lua-hashings copied to clipboard

Issue with hashings and imapfilter

Open hi-flyer opened this issue 3 years ago • 0 comments

I have installed both nums and hashings using luarocks 3.8 (as suggested by response to my nums comment) on both my laptop running ubuntu 20.04 desktop and on my server using ubuntu 20.04 server version. When I run imapfilter executing the command hs = require("hashings").sha256() on my laptop, it works fine. On the other hand when I run the same program on my server I get imapfilter: /home/beckstein/.imapfilter/configtest.lua:1134: module 'hashings' not found: no field package.preload['hashings'] no file '/usr/local/share/lua/5.2/hashings.lua' no file '/usr/local/share/lua/5.2/hashings/init.lua' no file '/usr/local/lib/lua/5.2/hashings.lua' no file '/usr/local/lib/lua/5.2/hashings/init.lua' no file '/usr/share/lua/5.2/hashings.lua' no file '/usr/share/lua/5.2/hashings/init.lua' no file './hashings.lua' no file '/usr/local/lib/lua/5.2/hashings.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/hashings.so' no file '/usr/lib/lua/5.2/hashings.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './hashings.so' stack traceback: [C]: in ? [C]: in function 'require' /home/xxxx/.imapfilter/configtest.lua:1134: in function 'configuredatafn' /home/xxxx/.imapfilter/configtest.lua:1309: in main chunk

Can you give me a hint what you think is missing in my server installation that I get this error.

ps if I run lua interperter on the server and the command hs = require("hashings").sha256(), it does not have this error. I do notice that the /usr/share/lua/5.3 directory on my server does not include either the nums or hashings directories that my laptop does. I also note that the file /usr/share/lua/5.3/re.lua (which I have no clue what created it and not clear it has anything to do with this problem) does not appear on my server but is on my laptop. on my server and my laptop executing: ls /usr/local/share/lua/5.3 shows hashings luarocks nums

hi-flyer avatar Jun 24 '22 14:06 hi-flyer