Lua & additional libraries
#1
I am working on plugin that requires cloud storage.

I am trying to use socket.http to store general login/logout info. However, I get the following:
Code:
[15:35:21] LUA: Plugins/Metaverse/hooks.lua:15: module 'socket.http' not found:
        no field package.preload['socket.http']
        no file './socket/http.lua'
        no file '/usr/local/share/lua/5.1/socket/http.lua'
        no file '/usr/local/share/lua/5.1/socket/http/init.lua'
        no file '/usr/local/lib/lua/5.1/socket/http.lua'
        no file '/usr/local/lib/lua/5.1/socket/http/init.lua'
        no file 'Plugins/Metaverse/socket/http.lua'
        no file './socket/http.so'
        no file '/usr/local/lib/lua/5.1/socket/http.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file 'Plugins/Metaverse/socket/http.so'
        no file './socket.so'
        no file '/usr/local/lib/lua/5.1/socket.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file 'Plugins/Metaverse/socket.so'
[15:35:21] Stack trace:
[15:35:21]   [C](-1): require
[15:35:21]   Plugins/Metaverse/hooks.lua(15): (no name)
[15:35:21] Stack trace end
[15:35:21] Error in plugin Metaverse calling function <callback>()

I have no problems using socket.http in other Lua scripts on the same machine.
Reply
Thanks given by:


Messages In This Thread
Lua & additional libraries - by wudles - 01-02-2015, 10:05 AM
RE: Lua & additional libraries - by xoft - 01-02-2015, 05:18 PM
RE: Lua & additional libraries - by Seadragon91 - 01-25-2015, 07:59 AM
RE: Lua & additional libraries - by xoft - 01-25-2015, 08:14 AM
RE: Lua & additional libraries - by NiLSPACE - 01-25-2015, 08:15 AM
RE: Lua & additional libraries - by worktycho - 01-25-2015, 08:22 AM



Users browsing this thread: 1 Guest(s)