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 'loadcaffe' not found:No LuaRocks module found for loadcaffe #474

Open
maryamashoori opened this issue Mar 11, 2019 · 1 comment
Open

Comments

@maryamashoori
Copy link

Trying to run with the default parameters. Getting this error:

/opt/share/torch-7/x86_64/install/bin/luajit: ...hare/torch-7/x86_64/install/share/lua/5.1/trepl/init.lua:389: module 'loadcaffe' not found:No LuaRocks module found for loadcaffe
	no field package.preload['loadcaffe']
	no file '/u/rer/.luarocks/share/lua/5.1/loadcaffe.lua'
	no file '/u/rer/.luarocks/share/lua/5.1/loadcaffe/init.lua'
	no file '/opt/share/torch-7/x86_64/install/share/lua/5.1/loadcaffe.lua'
	no file '/opt/share/torch-7/x86_64/install/share/lua/5.1/loadcaffe/init.lua'
	no file './loadcaffe.lua'
	no file '/opt/share/torch-7/x86_64/install/share/luajit-2.1.0-beta1/loadcaffe.lua'
	no file '/usr/local/share/lua/5.1/loadcaffe.lua'
	no file '/usr/local/share/lua/5.1/loadcaffe/init.lua'
	no file '/u/maryam/.luarocks/share/lua/5.1/loadcaffe.lua'
	no file '/u/maryam/.luarocks/share/lua/5.1/loadcaffe/init.lua'
	no file '/u/rer/.luarocks/lib/lua/5.1/loadcaffe.so'
	no file '/opt/share/torch-7/x86_64/install/lib/lua/5.1/loadcaffe.so'
	no file '/opt/share/torch-7/x86_64/install/lib/loadcaffe.so'
	no file './loadcaffe.so'
	no file '/usr/local/lib/lua/5.1/loadcaffe.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
	no file '/u/maryam/.luarocks/lib/lua/5.1/loadcaffe.so'
stack traceback:
	[C]: in function 'error'
	...hare/torch-7/x86_64/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
	neural_style.lua:6: in main chunk
	[C]: in function 'dofile'
	...h-7/x86_64/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
	[C]: at 0x004064f0

Note, this is RHEL 7.4.

Thanks!

@AndreV84
Copy link

AndreV84 commented Apr 9, 2019

what if you try the below:
.

First, make sure you follow their instructions to install protobuf and everything else (e.g. sudo apt-get install libprotobuf-dev protobuf-compiler), and then install via luarocks:

luarocks install loadcaffe
source: https://github.com/karpathy/neuraltalk2#for-training

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

2 participants