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

Installing from git fails #268

Closed
kzhang2 opened this issue Dec 8, 2023 · 1 comment
Closed

Installing from git fails #268

kzhang2 opened this issue Dec 8, 2023 · 1 comment

Comments

@kzhang2
Copy link

kzhang2 commented Dec 8, 2023

When I try to install directly from git I get this error.

pip install git+https://github.com/nerfstudio-project/nerfacc.git

WARNING: Ignoring invalid distribution -orch (/vulcanscratch/kzhang/miniconda3/envs/jax/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -orch (/vulcanscratch/kzhang/miniconda3/envs/jax/lib/python3.9/site-packages)
Collecting git+https://github.com/nerfstudio-project/nerfacc.git
  Cloning https://github.com/nerfstudio-project/nerfacc.git to /tmp/pip-req-build-hflq2lay
  Running command git clone -q https://github.com/nerfstudio-project/nerfacc.git /tmp/pip-req-build-hflq2lay
  Resolved https://github.com/nerfstudio-project/nerfacc.git to commit ef8d27c5b947631d8939caa5a47b63d04b795487
  Running command git submodule update --init --recursive -q
  fatal: remote error: upload-pack: not our ref e739343890da1f29ab06586a02e038c3348850c8
  Fetched in submodule path 'benchmarks/kplanes', but it did not contain e739343890da1f29ab06586a02e038c3348850c8. Direct fetching of that commit failed.
WARNING: Discarding git+https://github.com/nerfstudio-project/nerfacc.git. Command errored out with exit status 1: git submodule update --init --recursive -q Check the logs for full command output.
ERROR: Command errored out with exit status 1: git submodule update --init --recursive -q Check the logs for full command output.
WARNING: Ignoring invalid distribution -orch (/vulcanscratch/kzhang/miniconda3/envs/jax/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -orch (/vulcanscratch/kzhang/miniconda3/envs/jax/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -orch (/vulcanscratch/kzhang/miniconda3/envs/jax/lib/python3.9/site-packages)

I believe this is because if you try to go to the commit https://github.com/liruilong940607/kplanes/tree/e739343890da1f29ab06586a02e038c3348850c8 github says it doesn't exist.

One workaround is to clone the repo non-recursively and then run pip install -e . as it's only the benchmarks directory that suffers from this problem.

@liruilong940607
Copy link
Collaborator

thanks for reporting! should have fixed now!

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