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

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

Open
pioneer-innovation opened this issue Aug 14, 2022 · 5 comments
Open

Comments

@pioneer-innovation
Copy link

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
Copy link
Author

pioneer-innovation commented Aug 14, 2022

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
Copy link
Author

It can work after a few minutes, but I didn't change anything. 🤣

@pioneer-innovation
Copy link
Author

It returns same error now! T_T

@pioneer-innovation
Copy link
Author

can someone help me? T_T

@mattdeitke
Copy link
Member

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.

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