Lua 要求(';图像';)不在Torch7中工作
我已经使用Luarock安装了“映像”包Lua 要求(';图像';)不在Torch7中工作,lua,machine-learning,ubuntu-14.04,deep-learning,torch,Lua,Machine Learning,Ubuntu 14.04,Deep Learning,Torch,我已经使用Luarock安装了“映像”包 $ luarocks install image 所有的东西都安装好了,没有任何错误。每当我尝试使用它时,都会返回以下错误: > 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:3
$ luarocks install image
所有的东西都安装好了,没有任何错误。每当我尝试使用它时,都会返回以下错误:
> 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:我正在运行Ubuntu14.04,并按照官方指示安装了Torch7,其他一切都正常工作。遇到了同样的问题。做
luarocks install sys
也为我工作。不确定安装映像后sys发生了什么情况。torch/sys已被修改以解决死锁问题:请参阅和。