error InvalidGitRepositoryError(epath) #1017
Copy link
Copy link
Closed
Labels
Description
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
Reactions are currently unavailable
Activity
Byron commentedon 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/pythiayourself 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.zh57398 commentedon Nov 25, 2020
Have you solved the problem? I also encountered similar problems, looking forward to your reply, thank you very much.