jax_verify icon indicating copy to clipboard operation
jax_verify copied to clipboard

einshape requirement use of git://

Open mfe7 opened this issue 3 years ago • 1 comments

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.

mfe7 avatar Jan 11 '23 02:01 mfe7

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)

Linusnie avatar Oct 29 '23 14:10 Linusnie