Skip to content

InvalidGitRepositoryError #111

Open
Open
@xiashengjie

Description

@xiashengjie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions