lupa icon indicating copy to clipboard operation
lupa copied to clipboard

Call lua socket.http via lupa

Open thomas1984 opened this issue 5 years ago • 1 comments

Hello! I installed lupa, luajit. At the same time, I installed lua 5.3.5 under a non-root user, and used luarocks to install socket.http. Then use lupa execute lua file (lua source code line 112 has the following code: local http = require ("socket.http")) but it prompts the following when running: error loading module 'socket.http' from file '/ mnt / sda / Dev_Tools / LUA / lua / share / lua / 5': cannot read / mnt / sda / Dev_Tools / LUA / lua / share / lua / 5: Is a directory stack traceback: [C]: in? [C]: in function 'require' [string ""]: 112: in function 'PostPic' [string ""]: 185: in main chunk Screenshot from 2020-05-12 15-25-07 Screenshot from 2020-05-12 15-27-04

To add: The original Lua source code was successfully run directly with Lua

thomas1984 avatar May 12 '20 07:05 thomas1984

Looks like an issue with your installation somehow.

scoder avatar May 19 '20 12:05 scoder