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

error InvalidGitRepositoryError(epath) #1017

Closed
wind91725 opened this issue Jun 5, 2020 · 1 comment
Closed

error InvalidGitRepositoryError(epath) #1017

wind91725 opened this issue Jun 5, 2020 · 1 comment
Labels
Q&A

Comments

@wind91725
Copy link

@wind91725 wind91725 commented Jun 5, 2020

my GitPython==3.1.3,my error below,how can i solve the issus?please help me,thank you!
File "tools/run.py", line 88, in
run()
File "tools/run.py", line 75, in run
trainer.load()
File "/data/home/share1/pythia/pythia/trainers/base_trainer.py", line 49, in load
self.load_extras()
File "/data/home/share1/pythia/pythia/trainers/base_trainer.py", line 146, in load_extras
self.checkpoint = Checkpoint(self)
File "/data/home/share1/pythia/pythia/utils/checkpoint.py", line 51, in init
self.repo = git.Repo(self.repo_path)
File "/data/home/share1/36/anaconda3/envs/pythia/lib/python3.6/site-packages/git/repo/base.py", line 181, in init
raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /data/home/share1/pythia

@Byron Byron added the Q&A label Jun 5, 2020
@Byron
Copy link
Member

@Byron Byron commented Jun 5, 2020

I think without information on what you are trying to do there will not be much anyone can do for you. Thus I am closing the issue and consider it Q&A.

As a possible way to help understand what the problem is, you could enter the path /data/home/share1/pythia yourself and execute git inside of it. Maybe the git command also won't be able to recognise it as repository. From there one could find it why that is that causes no .git dir to be found.

@Byron Byron closed this Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.