torch / nngraph

Graph Computation for nn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem in nn-graph installation

nitingupta98 opened this issue · comments

Hi , I have installed nngraph
but when using require 'nn-graph' in torch interpreter
i got this problem.

/home/nitin/torch/install/share/lua/5.1/trepl/init.lua:384: module 'nn-graph' not found:No LuaRocks module found for nn-graph

nitin@nitin-Latitude-E5430-non-vPro:~$ luarocks install nngraph
Installing https://raw.githubusercontent.com/torch/rocks/master/nngraph-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/nngraph-scm-1.rockspec... switching to 'build' mode
Cloning into 'nngraph'...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 39 (delta 0), reused 19 (delta 0), pack-reused 0
Receiving objects: 100% (39/39), 1.61 MiB | 300.00 KiB/s, done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/nitin/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1" && make

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /home/nitin/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_nngraph-scm-1-898/nngraph/build
cd build && make install
Install the project...
-- Install configuration: "Release"
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/JustElement.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/nesting.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/graphinspecting.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/gmodule.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/init.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/simple_print.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/node.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/utils.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/JustTable.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/nest.lua
-- Installing: /home/nitin/torch/install/lib/luarocks/rocks/nngraph/scm-1/lua/nngraph/ModuleFromCriterion.lua
Updating manifest for /home/nitin/torch/install/lib/luarocks/rocks
nngraph scm-1 is now built and installed in /home/nitin/torch/install/ (license: UNKNOWN)

nitin@nitin-Latitude-E5430-non-vPro:~$ th

______ __ | Torch7
/_ / ________/ / | Scientific computing for Lua.
/ / / _ / __/ / _ \ | Type ? for help
/_/ _
// _//// | https://github.com/torch
| http://torch.ch

th> require 'nn-graph';
/home/nitin/torch/install/share/lua/5.1/trepl/init.lua:384: module 'nn-graph' not found:No LuaRocks module found for nn-graph
no field package.preload['nn-graph']
no file '/home/nitin/.luarocks/share/lua/5.1/nn-graph.lua'
no file '/home/nitin/.luarocks/share/lua/5.1/nn-graph/init.lua'
no file '/home/nitin/torch/install/share/lua/5.1/nn-graph.lua'
no file '/home/nitin/torch/install/share/lua/5.1/nn-graph/init.lua'
no file './nn-graph.lua'
no file '/home/nitin/torch/install/share/luajit-2.1.0-beta1/nn-graph.lua'
no file '/usr/local/share/lua/5.1/nn-graph.lua'
no file '/usr/local/share/lua/5.1/nn-graph/init.lua'
no file '/home/nitin/.luarocks/lib/lua/5.1/nn-graph.so'
no file '/home/nitin/torch/install/lib/lua/5.1/nn-graph.so'
no file '/home/nitin/torch/install/lib/nn-graph.so'
no file './nn-graph.so'
no file '/usr/local/lib/lua/5.1/nn-graph.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/nitin/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
[string "require 'nn-graph';"]:1: in main chunk
[C]: in function 'xpcall'
/home/nitin/torch/install/share/lua/5.1/trepl/init.lua:670: in function 'repl'
...itin/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: at 0x00405d50

Hi, it should be require 'nngraph'.

nngraph (not installed) problem is solved using

luarocks --from=https://raw.githubusercontent.com/torch/rocks/master/ install nngraph

nngraph (not installed) problem is solved using

luarocks --from=https://raw.githubusercontent.com/torch/rocks/master/ install nngraph

I was trying to run this and I am getting:
`Installing https://raw.githubusercontent.com/torch/rocks/master/nngraph-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/nngraph-scm-1.rockspec... switching to 'build' mode
Cloning into 'nngraph'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed cloning git repository.`

Anyone know a fix?

nngraph (not installed) problem is solved using
luarocks --from=https://raw.githubusercontent.com/torch/rocks/master/ install nngraph

I was trying to run this and I am getting: `Installing https://raw.githubusercontent.com/torch/rocks/master/nngraph-scm-1.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/nngraph-scm-1.rockspec... switching to 'build' mode Cloning into 'nngraph'... fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed cloning git repository.`

Anyone know a fix?

Did you fix the issue?