Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call lua socket.http via lupa #138

Open
thomas1984 opened this issue May 12, 2020 · 1 comment
Open

Call lua socket.http via lupa #138

thomas1984 opened this issue May 12, 2020 · 1 comment

Comments

@thomas1984
Copy link

thomas1984 commented May 12, 2020

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

@scoder
Copy link
Owner

scoder commented May 19, 2020

Looks like an issue with your installation somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants