waifu2x icon indicating copy to clipboard operation
waifu2x copied to clipboard

Can't install graphicsmagick

Open DrXie opened this issue 7 years ago • 9 comments

excited@excited:~/Downloads/Software/waifu2x-master$ th waifu2x.lua /home/excited/torch/install/bin/luajit: /home/excited/torch/install/share/lua/5.1/trepl/init.lua:389: /home/excited/torch/install/share/lua/5.1/trepl/init.lua:389: module 'graphicsmagick' not found:No LuaRocks module found for graphicsmagick no field package.preload['graphicsmagick'] no file 'lib/graphicsmagick.lua' no file '/home/excited/.luarocks/share/lua/5.1/graphicsmagick.lua' no file '/home/excited/.luarocks/share/lua/5.1/graphicsmagick/init.lua' no file '/home/excited/torch/install/share/lua/5.1/graphicsmagick.lua' no file '/home/excited/torch/install/share/lua/5.1/graphicsmagick/init.lua' no file './graphicsmagick.lua' no file '/home/excited/torch/install/share/luajit-2.1.0-beta1/graphicsmagick.lua' no file '/usr/local/share/lua/5.1/graphicsmagick.lua' no file '/usr/local/share/lua/5.1/graphicsmagick/init.lua' no file '/home/excited/.luarocks/lib/lua/5.1/graphicsmagick.so' no file '/home/excited/torch/install/lib/lua/5.1/graphicsmagick.so' no file '/home/excited/torch/install/lib/graphicsmagick.so' no file './graphicsmagick.so' no file '/usr/local/lib/lua/5.1/graphicsmagick.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' /home/excited/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' waifu2x.lua:6: in main chunk [C]: in function 'dofile' ...ited/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk [C]: at 0x00405d50

DrXie avatar Nov 30 '16 04:11 DrXie

excited@excited:~/Downloads/Software/waifu2x-master$ sudo luarocks install csvigo

Error: No results matching query were found. excited@excited:~/Downloads/Software/waifu2x-master$ sudo luarocks install cudnn

Error: No results matching query were found.

DrXie avatar Nov 30 '16 04:11 DrXie

You should not use sudo. Probably another luarocks command that exists on your system is used. (torch7's luarocks command will change the luarocks repository.)

which luarocks
sudo which luarocks

If you are not using lua for other software, I recommend uninstalling it.

nagadomi avatar Nov 30 '16 07:11 nagadomi

Has this issue been resolved? I still can't seem to install graphicsmagick through luarocks:

ubuntu@ip-172-31-59-19:~$ luarocks install graphicsmagick Installing https://raw.githubusercontent.com/torch/rocks/master/graphicsmagick-1.scm-0.rockspec... Using https://raw.githubusercontent.com/torch/rocks/master/graphicsmagick-1.scm-0.rockspec... switching to 'build' mode Cloning into 'graphicsmagick'...

it seems to hang at the Cloning into 'graphicsmagick'... part, just frozen. Nothing seems to happen for a long while until I just ctrl-C the operaiton.

Cheers

sanjeev342 avatar Apr 05 '17 10:04 sanjeev342

Actually, sorry, this is the error I receive:

fatal: unable to connect to github.com: github.com[0: 192.30.253.112]: errno=Connection timed out github.com[1: 192.30.253.113]: errno=Connection timed out

Error: Failed cloning git repository.

The same seems to happen with luarocks install csvigo.

sanjeev342 avatar Apr 05 '17 10:04 sanjeev342

Okay. Feeling a little embarassed but my issue is resolved. Nothing but improper security group rules for an EC2 instance. Cheers.

sanjeev342 avatar Apr 05 '17 10:04 sanjeev342

@DrXie If you installed luarocks from debian repository it does not work (report that half of required packets do not exist). First type:

sudo apt remove luarocks

Then restart PC or run in terminal code that Torch added to your user .bashrc file ( cat ~/.bashrc ). In my case it was (linux user: jskalski ):

. /home/jskalski/torch/install/bin/torch-activate

JSkalskiSBG avatar Jan 11 '18 11:01 JSkalskiSBG

I am having this same issue, and i'm not 100% sure how you all resolved this.

alexacallmebaka avatar Feb 15 '20 23:02 alexacallmebaka

I fixed it with running

git config --global url."https://".insteadOf git://

before luarocks install.

alex-kinokon avatar Dec 03 '22 01:12 alex-kinokon

The original cause of the issue is different, but currently related to #425 . I pinned #425 to the issue tab.

nagadomi avatar Dec 03 '22 03:12 nagadomi