Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

einshape requirement use of git:// #8

Open
mfe7 opened this issue Jan 11, 2023 · 1 comment
Open

einshape requirement use of git:// #8

mfe7 opened this issue Jan 11, 2023 · 1 comment

Comments

@mfe7
Copy link

mfe7 commented Jan 11, 2023

Hi Rudy -

I was just trying to pip install a local clone of this repo and got this error:

(venv3.10) mfe@Michaels-MacBook-Air robustness_analysis % python -m pip install -e jax_verify
Obtaining file:///Users/mfe/code/robustness_analysis/jax_verify
  Preparing metadata (setup.py) ... done
Collecting einshape@ git+git://github.com/deepmind/einshape.git
  Cloning git://github.com/deepmind/einshape.git to /private/var/folders/cq/gg1tn9g54pn2vg_fh99fh3_00000gn/T/pip-install-s6x2khvr/einshape_5dc538cc56a94e73a5e1c2474dedfd11
  Running command git clone --filter=blob:none --quiet git://github.com/deepmind/einshape.git /private/var/folders/cq/gg1tn9g54pn2vg_fh99fh3_00000gn/T/pip-install-s6x2khvr/einshape_5dc538cc56a94e73a5e1c2474dedfd11
  fatal: unable to connect to github.com:
  github.com[0: 140.82.112.3]: errno=Operation timed out

  error: subprocess-exited-with-error

  × git clone --filter=blob:none --quiet git://github.com/deepmind/einshape.git /private/var/folders/cq/gg1tn9g54pn2vg_fh99fh3_00000gn/T/pip-install-s6x2khvr/einshape_5dc538cc56a94e73a5e1c2474dedfd11 did not run successfully.
  │ exit code: 128
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet git://github.com/deepmind/einshape.git /private/var/folders/cq/gg1tn9g54pn2vg_fh99fh3_00000gn/T/pip-install-s6x2khvr/einshape_5dc538cc56a94e73a5e1c2474dedfd11 did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I fixed this by changing the einshape line in requirements.txt to use https:// instead of git:// per this post.

@Linusnie
Copy link

hi, I'm having the same issue. Had to clone the repo and manually make the change to requirements.txt in order to pip install (the version on PyPi doesn't work with more recent versions of jax)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants