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 'threads' not found: #100

Open
HellScre4m opened this issue Oct 23, 2017 · 2 comments
Open

module 'threads' not found: #100

HellScre4m opened this issue Oct 23, 2017 · 2 comments

Comments

@HellScre4m
Copy link

HellScre4m commented Oct 23, 2017

Hi. I get this error while trying to run my app:
[ 0][t 0][1508748296.451671124][clilua.cpp:171][!CliClient] lua: /home/BlueBerry_TDBOT/bot.lua:1: module 'threads' not found: no field package.preload['threads'] no file '/usr/local/share/lua/5.2/threads.lua' no file '/usr/local/share/lua/5.2/threads/init.lua' no file '/usr/local/lib/lua/5.2/threads.lua' no file '/usr/local/lib/lua/5.2/threads/init.lua' no file '/usr/share/lua/5.2/threads.lua' no file '/usr/share/lua/5.2/threads/init.lua' no file './threads.lua' no file '/usr/local/lib/lua/5.2/threads.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/threads.so' no file '/usr/lib/lua/5.2/threads.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './threads.so'
I was thinking maybe this is related to $LUA_PATH so:
echo $LUA_PATH /root/.luarocks/share/lua/5.2/?.lua;/root/.luarocks/share/lua/5.2/?/init.lua;/root/torch/install/share/lua/5.2/?.lua;/root/torch/install/share/lua/5.2/?/init.lua;/root/torch/install/lib/lua/5.2/?.lua;/root/torch/install/lib/lua/5.2/?/init.lua;./?.lua echo $LUA_CPATH /root/torch/install/lib/?.so;/root/.luarocks/lib/lua/5.2/?.so;/root/torch/install/lib/lua/5.2/?.so;/root/torch/install/lib/lua/5.2/loadall.so;./?.so
Seems weird to me. Any way to fix it?

@HellScre4m
Copy link
Author

It's fixed. Using sudo command for using luarocks was forcing bash to use system luarocks not torch dist.
Anyway I think you guys should keep on this job, add variable size thread pool feature and work stealing (implemented by Dogg Lea in Java). Such a work will move Lua towards maturity in parallelism and you can play an important role in this.

@benkmoore
Copy link

@HellScre4m

i think I have simialr issue to what you had

FATAL THREAD PANIC: (pcall) [string " local Queue = require 'threads.queue'..."]:1: module 'threads.queue' not found: no field package.preload['threads.queue'] no file '/home/ben/.luarocks/share/lua/5.2/threads/queue.lua' no file '/home/ben/.luarocks/share/lua/5.2/threads/queue/init.lua' no file '/home/ben/torch/install/share/lua/5.2/threads/queue.lua' no file '/home/ben/torch/install/share/lua/5.2/threads/queue/init.lua' no file '/home/ben/.luarocks/share/lua/5.1/threads/queue.lua' no file '/home/ben/.luarocks/share/lua/5.1/threads/queue/init.lua' no file '/usr/local/share/lua/5.1/threads/queue.lua' no file '/usr/local/share/lua/5.1/threads/queue/init.lua' no file '/usr/share/lua/5.1/threads/queue.lua' no file './threads/queue.lua' no file '/usr/local/lib/lua/5.1/threads/queue.lua' no file '/usr/local/lib/lua/5.1/threads/queue/init.lua' no file '/usr/share/lua/5.1/threads/queue/init.lua' no file '/home/ben/torch/install/lib/threads/queue.so' no file '/home/ben/.luarocks/lib/lua/5.2/threads/queue.so' no file '/home/ben/torch/install/lib/lua/5.2/threads/queue.so' no file '/home/ben/.luarocks/lib/lua/5.1/threads/queue.so' no file '/usr/local/lib/lua/5.1/threads/queue.so' no file './threads/queue.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/threads/queue.so' no file '/usr/lib/lua/5.1/threads/queue.so' no file '/usr/local/lib/lua/5.1/loadall.so' no file '/home/ben/torch/install/lib/threads.so' no file '/home/ben/.luarocks/lib/lua/5.2/threads.so' no file '/home/ben/torch/install/lib/lua/5.2/threads.so' no file '/home/ben/.luarocks/lib/lua/5.1/threads.so' no file '/usr/local/lib/lua/5.1/threads.so' no file './threads.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/threads.so' no file '/usr/lib/lua/5.1/threads.so' no file '/usr/local/lib/lua/5.1/loadall.so'
Could you tell me how you solved it?

I have more details here https://github.com/phillipi/pix2pix/issues/177

Any help would be great, 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

2 participants