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

Can't install graphicsmagick #155

Open
DrXie opened this issue Nov 30, 2016 · 9 comments
Open

Can't install graphicsmagick #155

DrXie opened this issue Nov 30, 2016 · 9 comments

Comments

@DrXie
Copy link

DrXie commented Nov 30, 2016

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
Copy link
Author

DrXie commented Nov 30, 2016

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.

@nagadomi
Copy link
Owner

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.

@sanjeev342
Copy link

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
Copy link

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
Copy link

sanjeev342 commented Apr 5, 2017

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

@JSkalskiSBG
Copy link

@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

@alexacallmebaka
Copy link

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

@alex-kinokon
Copy link

I fixed it with running

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

before luarocks install.

@nagadomi
Copy link
Owner

nagadomi commented Dec 3, 2022

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

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

6 participants