Lua image error

I installed the lua image according to this – link. I also tested my installation with luajit -limage -e “image.test()”, it said 0 errors and 0 warnings. Also, when I try

> require'image'
> l = image.lena()

there is no error. But , When I try image.display(l), I get the following error:

/home/srilatha/torch/install/share/lua/5.1/trepl/init .lua:384: module'qt' not found:No LuaRocks module found for qt
no field package.preload['qt']
no file'/home/srilatha/.luarocks/share/lua /5.1/qt.lua'
no file'/home/srilatha/.luarocks/share/lua/5.1/qt/init.lua'
no file'/home/srilatha/torch/install/ share/lua/5.1/qt.lua'
no file'/home/srilatha/torch/install/share/lua/5.1/qt/init.lua'
no file'./qt.lua '
no file'/home/srilatha/torch/install/share/luajit-2.1.0-beta1/qt.lua'
no file'/usr/local/share/lua/5.1/qt .lua'
no file'/usr/local/share/lua/5.1/qt/init.lua'
no file'/home/srilatha/.luarocks/lib/lua/5.1/qt. so'
no file'/home/srilatha/torch/instal l/lib/lua/5.1/qt.so'
no file'/home/srilatha/torch/install/lib/qt.so'
no file'./qt.so'
no file'/usr/local/lib/lua/5.1/qt.so'
no file'/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function'error'
/home/srilatha/torch/install/share/lua/5.1/trepl/init.lua:384: in function'require'
/home/ srilatha/torch/install/share/lua/5.1/image/init.lua:1363: in function'display'
[string "_RESULT={image.display(l)}"]:1: in main chunk
[C]: in function'xpcall'
/home/srilatha/torch/install/share/lua/5.1/trepl/init.lua:651: in function'repl'
. ..atha/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: at 0x00406670

I have torch normal Runs, so I don’t know what will happen to qt. How can I solve this problem?

Have you ever had a chance to read this?

https://github.com/torch/image/blob/master/doc/gui.md

The image.display in other functions can only pass qlua Lua Interpreter access.

Calling this function from LuaJit will cause the error you encountered.

I installed the lua image according to this – link. I I also tested my installation with luajit -limage -e “image.test()”, it said 0 errors and 0 warnings. Also, when I try

 > require'image'
> l = image.lena()

There is no error. However, when I try image.display(l), I receive the following error:

/home/srilatha/torch/install/share/lua/5.1/trepl/init.lua:384: module'qt' not found:No LuaRocks module found for qt
no field package.preload['qt']
no file'/home/srilatha/.luarocks/share/lua/5.1/qt.lua'
no file'/home/srilatha/.luarocks/ share/lua/5.1/qt/init.lua'
no file'/home/srilatha/torch/install/share/lua/5.1/qt.lua'
no file'/home/srilatha/ torch/install/share/lua/5.1/qt/init.lua'
no file'./qt.lua'
no file'/home/srilatha/torch/install/share/luajit-2.1 .0-beta1/qt.lua'
no file'/usr/local/share/lua/5.1/qt.lua'
no file'/usr/local/share/lu a/5.1/qt/init.lua'
no file'/home/srilatha/.luarocks/lib/lua/5.1/qt.so'
no file'/home/srilatha/torch/install /lib/lua/5.1/qt.so'
no file'/home/srilatha/torch/install/lib/qt.so'
no file'./qt.so'
no file'/usr/local/lib/lua/5.1/qt.so'
no file'/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function'error'
/home/srilatha/torch/install/share/lua/5.1/trepl/init.lua:384: in function'require'
/home/srilatha /torch/install/share/lua/5.1/image/init.lua:1363: in function'display'
[string "_RESULT={image.display(l)}"]:1: in main chunk< br /> [C]: in function'xpcall'
/home/srilatha/torch/install/share/lua/5.1/trepl/init.lua:651: in function'repl'
.. .atha/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: at 0x00406670

I have the torch running normally , So I don’t know what will happen to qt. How can I solve this problem?

Have you ever had a chance to read this?

https://github.com/torch/image/blob/master/doc/gui.md

Image.display in other functions can only be passed through qlua Lua Interpreter access.

Calling this function from LuaJit will cause the error you encounter.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3225 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.