torch / threads

Threads for Lua and LuaJIT. Transparent exchange of data between threads is allowed thanks to torch serialization.
Other
252 stars 55 forks source link

luarocks install dpnn: git Connection refused #97

Open sam-s opened 7 years ago

sam-s commented 7 years ago

I get the following error:

$ luarocks install dpnn
Installing https://raw.githubusercontent.com/torch/rocks/master/dpnn-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/dpnn-scm-1.rockspec... switching to 'build' mode
Cloning into 'dpnn'...
fatal: unable to connect to github.com:
github.com[0: 192.30.253.113]: errno=Connection refused
github.com[1: 192.30.253.112]: errno=Connection refused

Error: Failed cloning git repository.

This is because https://raw.githubusercontent.com/torch/rocks/master/dpnn-scm-1.rockspec specifies

source = {
   url = "git://github.com/Element-Research/dpnn",
   tag = "master"
}

instead of

source = {
   url = "https://github.com/Element-Research/dpnn",
   tag = "master"
}

I know the git:// url usually works, but, alas, some networks disallow it. Could you please use https:// instead of git://? Thanks!

arthitag commented 7 years ago

https://github.com/luarocks/luarocks/issues/419

vasantharajr commented 6 years ago

use proxy or open server , which allow you to access and down load the data from the portal

raniaoueslati commented 5 years ago

You have to change

rockspec.source.url

to

rockspec.source.url:gsub("^git://", "https://")

in git.lua

it works for me

raniaoueslati commented 5 years ago

if that does not work u can Force git to use https:// instead of git:// by typing the two following commands (without any change) :

git config --global url."https://github.com/".insteadOf git@github.com: git config --global url."https://".insteadOf git://

thoughtgeek commented 1 year ago

I thought I will just leave it here in case someone has a git that misbehaves like mine. I changed the global settings but still luarocks kept trying to use git:// so these are the steps I used to manually install the rock.

  1. git clone the rock repo and cd into it
  2. Run make command specifying the rockspec path sudo luarocks make <name>.rockspec

This will help you skip the cloning step and you will be able to manually install the rock!