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

module 'socket' not found #304

Open
lhsaq2009 opened this issue Sep 26, 2024 · 0 comments
Open

module 'socket' not found #304

lhsaq2009 opened this issue Sep 26, 2024 · 0 comments

Comments

@lhsaq2009
Copy link

/Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/runtime/darwin-x64/lua54/lua -e dofile"/Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/script/launch.lua";DBG"71226" /Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/src/client_sn.lua
➜ 2024-09-26-Lua-Demo git:(master) ✗ /Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-d
arwin-x64/runtime/darwin-x64/lua54/lua -e dofile"/Users/haisen/.cursor/extensions/actboy168.lua-deb
ug-2.0.10-darwin-x64/script/launch.lua";DBG"71226" /Users/haisen/IdeaProjects/02_Demo/2024-09-26
-Lua-Demo/src/client_sn.lua
Current package.path: /Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/?.lua;/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/?.lua;./src/?.lua;/usr/local/lib/luarocks/rocks-5.4/?.lua
table: 0x7fbfc7c36060
/Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/runtime/darwin-x64/lua54/lua: ./src/redis.lua:791: module 'socket' not found:
no field package.preload['socket']
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.lua'
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.lua'
no file './src/socket.lua'
no file '/usr/local/lib/luarocks/rocks-5.4/socket.lua'
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.so'
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.so'
stack traceback:
[C]: in function 'require'
./src/redis.lua:791: in upvalue 'create_connection'
./src/redis.lua:838: in function 'redis.connect'
...eaProjects/02_Demo/2024-09-26-Lua-Demo/src/client_sn.lua:15: in main chunk
[C]: in ?
➜ 2024-09-26-Lua-Demo git:(master) ✗

cd /Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo ; /Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/runtime/darwin-x64/lua54/lua -e dofile"/Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/script/launch.lua";DBG"71864" /Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/src/client_sn.lua
➜ 2024-09-26-Lua-Demo git:(master) ✗
➜ 2024-09-26-Lua-Demo git:(master) ✗ cd /Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo ; /User
s/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/runtime/darwin-x64/lua54/lua -e dofile
"/Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/script/launch.lua";DBG"71864
" /Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/src/client_sn.lua
Current package.path: /Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/?.lua;/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/?.lua;./src/?.lua;/usr/local/lib/luarocks/rocks-5.4/?.lua
table: 0x7f9cc0017740
/Users/haisen/.cursor/extensions/actboy168.lua-debug-2.0.10-darwin-x64/runtime/darwin-x64/lua54/lua: ./src/redis.lua:791: module 'socket' not found:
no field package.preload['socket']
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.lua'
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.lua'
no file './src/socket.lua'
no file '/usr/local/lib/luarocks/rocks-5.4/socket.lua'
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.so'
no file '/Users/haisen/IdeaProjects/02_Demo/2024-09-26-Lua-Demo/socket.so'
stack traceback:
[C]: in function 'require'
./src/redis.lua:791: in upvalue 'create_connection'
./src/redis.lua:838: in function 'redis.connect'
...eaProjects/02_Demo/2024-09-26-Lua-Demo/src/client_sn.lua:15: in main chunk
[C]: in ?
➜ 2024-09-26-Lua-Demo git:(master) ✗

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