prior icon indicating copy to clipboard operation
prior copied to clipboard

No such file or directory: '/media/datc/.git-credentials'

Open pioneer-innovation opened this issue 2 years ago ā€¢ 5 comments

Hi @mattdeitke : When I use prior to load procthor10k, it returns an error message:

  File "/media/datc/experiment/allenact/allenact_plugins/procthor_plugin/procthor_environment.py", line 76, in __init__
    self.scene_data = prior.load_dataset("procthor-10k")
  File "/media/datc/anaconda3/envs/ai2thor/lib/python3.8/site-packages/prior/__init__.py", line 272, in load_dataset
    sha, token = _clone_repo(
  File "/media/datc/anaconda3/envs/ai2thor/lib/python3.8/site-packages/prior/__init__.py", line 212, in _clone_repo
    with open(f"{os.environ['HOME']}/.git-credentials", "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/media/datc/.git-credentials'

pioneer-innovation avatar Aug 14 '22 06:08 pioneer-innovation

It seems like the prior needs an authentication of git, but it have download all data the procthor10k need. I don't why it need the authentication.

pioneer-innovation avatar Aug 14 '22 06:08 pioneer-innovation

It can work after a few minutes, but I didn't change anything. šŸ¤£

pioneer-innovation avatar Aug 14 '22 07:08 pioneer-innovation

It returns same error now! T_T

pioneer-innovation avatar Aug 14 '22 07:08 pioneer-innovation

can someone help me? T_T

pioneer-innovation avatar Aug 15 '22 10:08 pioneer-innovation

Hi @pioneer-innovation, sorry about this!

The bug is caused by having too many requests to GitHub without being signed in. I will push a fix for it soon.

Iā€™m the meantime though, first run git config credential.helper store and then try pulling a private repo from GitHub. This will prompt you to login on your machine. We can then use that key to increase the rate limit.

mattdeitke avatar Aug 15 '22 13:08 mattdeitke