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

Unable to install scenic from requirements.txt in docker #278

Closed
INF800 opened this issue Apr 19, 2022 · 4 comments
Closed

Unable to install scenic from requirements.txt in docker #278

INF800 opened this issue Apr 19, 2022 · 4 comments

Comments

@INF800
Copy link

INF800 commented Apr 19, 2022

Hi, I am trying to build docker image using

https://github.com/google-research/google-research/blob/eaa1a3f4c7e223f86c5266605c8aaf5b09df640b/dreamfields/Dockerfile#L1-L14

But the process halts at scenic with following error.

requirements.txt relevant content

git+git://github.com/google-research/scenic.git

error log:

Step 5/8 : RUN pip install -r requirements.txt
 ---> Running in 6678fe83aa7b
Looking in links: https://storage.googleapis.com/jax-releases/jax_releases.html, https://download.pytorch.org/whl/torch_stable.html
Collecting git+https://github.com/openai/CLIP.git (from -r requirements.txt (line 5))
  Cloning https://github.com/openai/CLIP.git to /tmp/pip-req-build-ldyy3145
  Running command git clone --filter=blob:none -q https://github.com/openai/CLIP.git /tmp/pip-req-build-ldyy3145
  Resolved https://github.com/openai/CLIP.git to commit e58d49454c92986a1d2a6a48add2333bbfbeaf51
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting git+git://github.com/google-research/scenic.git (from -r requirements.txt (line 15))
  Cloning git://github.com/google-research/scenic.git to /tmp/pip-req-build-50cvcxa5
  Running command git clone --filter=blob:none -q git://github.com/google-research/scenic.git /tmp/pip-req-build-50cvcxa5
  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.
WARNING: Discarding git+git://github.com/google-research/scenic.git. Command errored out with exit status 128: git clone --filter=blob:none -q git://github.com/google-research/scenic.git /tmp/pip-req-build-50cvcxa5 Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone --filter=blob:none -q git://github.com/google-research/scenic.git /tmp/pip-req-build-50cvcxa5 Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 22.0.4 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1
@MostafaDehghani
Copy link
Collaborator

Have you tried these steps: https://github.com/google-research/scenic#quickstart to install scenic? Does that work fine?

@INF800
Copy link
Author

INF800 commented Apr 19, 2022

I think these bloggers did a fair job of explaining the issue. https://exerror.com/solved-the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported/

It seems I need to change my git config.

@INF800
Copy link
Author

INF800 commented Apr 20, 2022

# fix some requirements.txt error
RUN git config --global url."https://".insteadOf git://

did the trick!

@MostafaDehghani
Copy link
Collaborator

Awesome! Thanks for posting the solution here.

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