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

Lua - module 'socket.http' not found #82

Open
nodecentral opened this issue Mar 10, 2021 · 0 comments
Open

Lua - module 'socket.http' not found #82

nodecentral opened this issue Mar 10, 2021 · 0 comments

Comments

@nodecentral
Copy link

nodecentral commented Mar 10, 2021

Hi

hopefully I’m posting this in the right place, as I’ve just installed LibTerm looking to do continue my Lua programming education and I tried to run a script I created called "TS_cabin_graph_watts_24h.lua" , which calls a url - but I get the forming error message.

lua: TS_cabin_graph_watts_24h.lua:6: module 'socket.http' not found:
    no field package.preload['socket.http']
    no file '/usr/local/share/lua/5.3/socket/http.lua'
    no file '/usr/local/share/lua/5.3/socket/http/init.lua'
    no file '/usr/local/lib/lua/5.3/socket/http.lua'
    no file '/usr/local/lib/lua/5.3/socket/http/init.lua'
    no file './socket/http.lua'
    no file './socket/http/init.lua'
    no file '/usr/local/lib/lua/5.3/socket/http.so'
    no file '/usr/local/lib/lua/5.3/loadall.so'
    no file './socket/http.so'
    no file '/usr/local/lib/lua/5.3/socket.so'
    no file '/usr/local/lib/lua/5.3/loadall.so'
    no file './socket.so'
stack traceback:
    [C]: in function 'require'
    TS_cabin_graph_watts_24h.lua:6: in main chunk
    [C]: in ?
    ````

Please could someone help me to fix it?  
is it possible to add that http and https module ?
Many thanks 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant