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

./install_lua_modules.sh - The unauthenticated git protocol on port 9418 is no longer supported. #425

Closed
CharAznableLoNZ opened this issue May 4, 2022 · 2 comments

Comments

@CharAznableLoNZ
Copy link

The install script fails. This appears to be due to a change by github.

user@Homura:~/waifu2x$ ./install_lua_modules.sh
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'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed cloning git repository.
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-csnappy-0.1.5-2.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lua-csnappy-0.1.5-2.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/home/user/torch/install/include -c lsnappy.c -o lsnappy.o
gcc -shared -o snappy.so -L/home/user/torch/install/lib lsnappy.o
Updating manifest for /home/user/torch/install/lib/luarocks/rocks
lua-csnappy 0.1.5-2 is now built and installed in /home/user/torch/install/ (license: BSD)

Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/md5-1.3-1.rockspec...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/md5-1.3-1.rockspec... switching to 'build' mode
gcc -O2 -fPIC -I/home/user/torch/install/include -c src/compat-5.2.c -o src/compat-5.2.o -Isrc/
gcc -O2 -fPIC -I/home/user/torch/install/include -c src/md5.c -o src/md5.o -Isrc/
gcc -O2 -fPIC -I/home/user/torch/install/include -c src/md5lib.c -o src/md5lib.o -Isrc/
gcc -shared -o md5/core.so -L/home/user/torch/install/lib src/compat-5.2.o src/md5.o src/md5lib.o
gcc -O2 -fPIC -I/home/user/torch/install/include -c src/compat-5.2.c -o src/compat-5.2.o -Isrc/
gcc -O2 -fPIC -I/home/user/torch/install/include -c src/des56.c -o src/des56.o -Isrc/
gcc -O2 -fPIC -I/home/user/torch/install/include -c src/ldes56.c -o src/ldes56.o -Isrc/
gcc -shared -o des56.so -L/home/user/torch/install/lib src/compat-5.2.o src/des56.o src/ldes56.o
Updating manifest for /home/user/torch/install/lib/luarocks/rocks
md5 1.3-1 is now built and installed in /home/user/torch/install/ (license: MIT/X11)

Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/uuid-0.3-1.src.rock...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/uuid-0.3-1.src.rock... switching to 'build' mode
Updating manifest for /home/user/torch/install/lib/luarocks/rocks
uuid 0.3-1 is now built and installed in /home/user/torch/install/ (license: Apache 2.0)

Installing https://raw.githubusercontent.com/torch/rocks/master/csvigo-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/csvigo-scm-1.rockspec... switching to 'build' mode
Cloning into 'lua---csv'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed cloning git repository.
Cloning into '.cudnn'...
remote: Enumerating objects: 2074, done.
remote: Total 2074 (delta 0), reused 0 (delta 0), pack-reused 2074
Receiving objects: 100% (2074/2074), 801.49 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1351/1351), done.
Checking connectivity... done.

Missing dependencies for cudnn:
cutorch

Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode
Cloning into 'cutorch'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Failed cloning git repository.
Installing https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/turbo-2.1-2.rockspec...
Using https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/turbo-2.1-2.rockspec... switching to 'build' mode
Cloning into 'turbo'...
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Error: Failed cloning git repository.

@nagadomi
Copy link
Owner

nagadomi commented May 4, 2022

This would be difficult to fix in the proper way as torch7 is not maintained.
You can work around this problem with the following commands.

# replace git:// with https://
git config --global url."https://".insteadOf git://
./install_lua_modules.sh
# restore git global config
git config --global --unset url."https://".insteadOf git://

@CharAznableLoNZ
Copy link
Author

That did seem to fix it however torch had other issues. I'm trying your version of torch instead.

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