3
で働いていない(「イメージ」)が必要です。私がそれを使用しようとすると、次のエラーが返されます:
> th> require('image')
>
> /home/khurram/torch/install/share/lua/5.1/trepl/init.lua:384:
> /home/khurram/torch/install/share/lua/5.1/trepl/init.lua:384: module
> 'sys.fpath' not found:No LuaRocks module found for sys.fpath no field
> package.preload['sys.fpath'] no file
> '/home/khurram/.luarocks/share/lua/5.1/sys/fpath.lua' no file
> '/home/khurram/.luarocks/share/lua/5.1/sys/fpath/init.lua' no file
> '/home/khurram/torch/install/share/lua/5.1/sys/fpath.lua' no file
> '/home/khurram/torch/install/share/lua/5.1/sys/fpath/init.lua' no
> file './sys/fpath.lua' no file
> '/home/khurram/torch/install/share/luajit-2.1.0-beta1/sys/fpath.lua'
> no file '/usr/local/share/lua/5.1/sys/fpath.lua' no file
> '/usr/local/share/lua/5.1/sys/fpath/init.lua' no file
> '/home/khurram/.luarocks/lib/lua/5.1/sys/fpath.so' no file
> '/home/khurram/torch/install/lib/lua/5.1/sys/fpath.so' no file
> '/home/khurram/torch/install/lib/sys/fpath.so' no file
> './sys/fpath.so' no file '/usr/local/lib/lua/5.1/sys/fpath.so' no
> file '/usr/local/lib/lua/5.1/loadall.so' no file
> '/home/khurram/.luarocks/lib/lua/5.1/sys.so' no file
> '/home/khurram/torch/install/lib/lua/5.1/sys.so' no file
> '/home/khurram/torch/install/lib/sys.so' no file './sys.so' no file
> '/usr/local/lib/lua/5.1/sys.so' no file
> '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function
> 'error' /home/khurram/torch/install/share/lua/5.1/trepl/init.lua:384:
> in function 'require' [string "_RESULT={require "image"}"]:1: in main
> chunk [C]: in function 'xpcall'
> /home/khurram/torch/install/share/lua/5.1/trepl/init.lua:651: in
> function 'repl'
> ...rram/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in
> main chunk [C]: at 0x00406670
誰でも私を助けてくれますか?私はTorch7の初心者です& LUA。
PS:私はUbuntu 14.04を実行しており、公式の指示に従ってTorch7をインストールしています。それ以外はうまくいきます。
デッドロックの問題を解決するためにtorch/sysが修正されました。https://github.com/torch/sys/pull/8およびhttps://github.com/torch/image/pull/157を参照してください。 – deltheil