Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in nn-graph installation #138

Open
nitingupta98 opened this issue Dec 24, 2016 · 4 comments
Open

problem in nn-graph installation #138

nitingupta98 opened this issue Dec 24, 2016 · 4 comments

Comments

@nitingupta98
Copy link

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

@taineleau-zz
Copy link

Hi, it should be require 'nngraph'.

@rocksyne
Copy link

nngraph (not installed) problem is solved using

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

@r1cummings
Copy link

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?

@zhangdan8962
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants