【问题标题】:Error - "No LuaRocks module found for fb.python"错误 - “没有为 fb.python 找到 LuaRocks 模块”
【发布时间】:2018-10-31 19:45:30
【问题描述】:

我正在尝试在Ubuntu 16.04 中实现一个Github project on 3D reconstruction using a single image 库。我已经安装了所有依赖项。在 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: module 'fb.python' not found:No LuaRocks module found for fb.python
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 目录中,而不是在项目中。

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

附:我是 Linux 新手。

【问题讨论】:

    标签: lua ubuntu-16.04 torch luarocks


    【解决方案1】:

    您需要先安装 Torch。 th and luarocks 安装 Torch 后这两个命令都可用,请参阅 Torch

    【讨论】:

    • 我已经安装并验证了我的安装。
    猜你喜欢
    • 1970-01-01
    • 2019-09-11
    • 2020-07-28
    • 1970-01-01
    • 1970-01-01
    • 2018-04-10
    • 1970-01-01
    • 2018-10-23
    • 1970-01-01
    相关资源
    最近更新 更多