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

module 'nn' not found #469

Open
saeid1 opened this issue Dec 14, 2018 · 5 comments
Open

module 'nn' not found #469

saeid1 opened this issue Dec 14, 2018 · 5 comments

Comments

@saeid1
Copy link

saeid1 commented Dec 14, 2018

hi can you please help me i have flowing error
$ th neural_style.lua -gpu -1 -print_iter 1 /usr/bin/luajit: /usr/share/lua/5.1/trepl/init.lua:389: module 'nn' not found: no field package.preload['nn'] no file './nn.lua' no file '/usr/share/luajit-2.1.0-beta3/nn.lua' no file '/usr/local/share/lua/5.1/nn.lua' no file '/usr/local/share/lua/5.1/nn/init.lua' no file '/usr/share/lua/5.1/nn.lua' no file '/usr/share/lua/5.1/nn/init.lua' no file './nn.so' no file '/usr/local/lib/lua/5.1/nn.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/nn.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /usr/share/lua/5.1/trepl/init.lua:389: in function 'require' neural_style.lua:2: in main chunk [C]: in function 'dofile' /usr/lib/torch-trepl/th:149: in main chunk [C]: at 0x556accec81d0

@ajhool
Copy link

ajhool commented Jan 26, 2019

try luarocks install nn

@AndreV84
Copy link

AndreV84 commented Apr 9, 2019

exactly! plain installation with luarocks should work, highly likely, in my opinion

@fuxiao567
Copy link

hi can you please help me i have flowing error
$ th neural_style.lua -gpu -1 -print_iter 1 /usr/bin/luajit: /usr/share/lua/5.1/trepl/init.lua:389: module 'nn' not found: no field package.preload['nn'] no file './nn.lua' no file '/usr/share/luajit-2.1.0-beta3/nn.lua' no file '/usr/local/share/lua/5.1/nn.lua' no file '/usr/local/share/lua/5.1/nn/init.lua' no file '/usr/share/lua/5.1/nn.lua' no file '/usr/share/lua/5.1/nn/init.lua' no file './nn.so' no file '/usr/local/lib/lua/5.1/nn.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/nn.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /usr/share/lua/5.1/trepl/init.lua:389: in function 'require' neural_style.lua:2: in main chunk [C]: in function 'dofile' /usr/lib/torch-trepl/th:149: in main chunk [C]: at 0x556accec81d0

I also encountered this problem. Can you solve this problem?

@mrgloom
Copy link

mrgloom commented Nov 4, 2019

sudo luarocks install nn

Installing https://luarocks.org/nn-1.0.5-1.src.rock
gcc -O2 -fPIC -I/usr/include/lua5.1 -c lnn.c -o lnn.o
lnn.c:4:9: fatal error: nanomsg/nn.h: No such file or directory
 #include<nanomsg/nn.h>
         ^~~~~~~~~~~~~~
compilation terminated.

Error: Build error: Failed compiling object lnn.o

sudo apt-get install libnanomsg-dev helped.

@AndreV84
Copy link

AndreV84 commented Nov 4, 2019

luarocks install torch && luarocks install nn
source torch/nn#1214

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