错误 - “找不到 fb.python 的 LuaRocks 模块”

我正在尝试在 Ubuntu 16.04 中实现一个库,该库是 3D 重建使用单张图像的 Github 项目。我已经安装了所有依赖项。我使用 Google 搜索和 stackoverflow 的帮助检查了每个依赖项是否正确安装。

但是,当我执行 Github 页面中提到的 ./run.sh 时,我得到以下错误。

/home/username/torch/install/bin/luajit: /home/username/torch/install/share/lua/5.1/trepl/init.lua:389: /home/username/torch/install/share/lua/5.1/trepl/init.lua:389: 找不到 'fb.python' 模块:找不到 fb.python 的 LuaRocks 模块
no field package.preload['fb.python']
no file '/home/username/.luarocks/share/lua/5.1/fb/python.lua'
no file '/home/username/.luarocks/share/lua/5.1/fb/python/init.lua'
no file '/home/username/torch/install/share/lua/5.1/fb/python.lua'
no file '/home/username/torch/install/share/lua/5.1/fb/python/init.lua'
no file './fb/python.lua'
no file '/home/username/torch/install/share/luajit-2.1.0-beta1/fb/python.lua'
no file '/usr/local/share/lua/5.1/fb/python.lua'
no file '/usr/local/share/lua/5.1/fb/python/init.lua'
no file '/home/username/.luarocks/lib/lua/5.1/fb/python.so'
no file '/home/username/torch/install/lib/lua/5.1/fb/python.so'
no file '/home/username/torch/install/lib/fb/python.so'
no file './fb/python.so'
no file '/usr/local/lib/lua/5.1/fb/python.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/username/.luarocks/lib/lua/5.1/fb.so'
no file '/home/username/torch/install/lib/lua/5.1/fb.so'
no file '/home/username/torch/install/lib/fb.so'
no file './fb.so'
no file '/usr/local/lib/lua/5.1/fb.so'
no file '/usr/local/lib/lua/5.1/loadall.so'

stack traceback:
[C]: in function 'error'
/home/username/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
main.lua:8: in main chunk
[C]: in function 'dofile'
...name/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
ls: cannot access '*.txt': No such file or directory

这个问题在 Torch 目录中而不是项目中。

所以请指导我如何解决它或者出了什么问题。

P.S. 我是 Linux 的新手。

点赞
用户2542699
用户2542699

你需要先安装 Torch。在安装 Torch 之后,将会有 thluarocks 这两个命令可用,参见 Torch

2018-06-14 15:42:34