tods icon indicating copy to clipboard operation
tods copied to clipboard

InvalidGitRepositoryError

Open xiashengjie opened this issue 8 months ago • 1 comments

What should I do if I get the following error when running the sample file run_bruteforce_search.py?

Traceback (most recent call last): File "examples/axolotl_interface/run_bruteforce_search.py", line 5, in from tods import generate_dataset, generate_problem File "/root/anaconda3/envs/xsj/lib/python3.7/site-packages/tods-0.0.2-py3.7.egg/tods/init.py", line 5, in from tods.detection_algorithm import * File "/root/anaconda3/envs/xsj/lib/python3.7/site-packages/tods-0.0.2-py3.7.egg/tods/detection_algorithm/init.py", line 17, in from tods.detection_algorithm.PyodMoGaal import Mo_GaalPrimitive File "/root/anaconda3/envs/xsj/lib/python3.7/site-packages/tods-0.0.2-py3.7.egg/tods/detection_algorithm/PyodMoGaal.py", line 126, in class Mo_GaalPrimitive(UnsupervisedOutlierDetectorBase[Inputs, Outputs, Params, Hyperparams]): File "/root/anaconda3/envs/xsj/lib/python3.7/site-packages/tods-0.0.2-py3.7.egg/tods/detection_algorithm/PyodMoGaal.py", line 192, in Mo_GaalPrimitive git_commit=d3m_utils.current_git_commit(os.path.dirname(file)), File "/root/anaconda3/envs/xsj/lib/python3.7/site-packages/d3m/utils.py", line 95, in current_git_commit repo = git.Repo(path=path, search_parent_directories=search_parent_directories) File "/root/anaconda3/envs/xsj/lib/python3.7/site-packages/git/repo/base.py", line 224, in init self.working_dir: Optional[PathLike] = self._working_tree_dir or self.common_dir File "/root/anaconda3/envs/xsj/lib/python3.7/site-packages/git/repo/base.py", line 307, in common_dir raise InvalidGitRepositoryError() git.exc.InvalidGitRepositoryError

xiashengjie avatar Nov 06 '23 10:11 xiashengjie