NeMo icon indicating copy to clipboard operation
NeMo copied to clipboard

problem in exp_manager

Open freshpearYoon opened this issue 1 year ago • 0 comments

While following tutorial "Voice_Activity_Detection.ipynb", I confronted errors in "exp_dir = exp_manager(trainer, config.get("exp_manager",None))"

I've changed nothing on the tutorial, and I am getting errrors.

WHen I first run the cell , I get "--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) Cell In[164], line 1 ----> 1 exp_dir = exp_manager(trainer, config.get("exp_manager",None))

File ~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:510, in exp_manager(trainer, cfg) 507 _file.write(" ".join(sys.argv)) 509 # Try to get git hash --> 510 git_repo, git_hash = get_git_hash() 511 if git_repo: 512 with open(log_dir / 'git-info.log', 'w', encoding='utf-8') as _file:

File ~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:786, in get_git_hash() 776 """ 777 Helper function that tries to get the commit hash if running inside a git folder 778 (...) 781 str: git subprocess output or error message 782 """ 783 try: 784 return ( 785 True, --> 786 subprocess.check_output(['git', 'rev-parse', 'HEAD'], stderr=subprocess.STDOUT).decode(), 787 ) 788 except subprocess.CalledProcessError as err: ... 1862 err_msg = os.strerror(errno_num) -> 1863 raise child_exception_type(errno_num, err_msg, err_filename) 1864 raise child_exception_type(err_msg)

FileNotFoundError: [Errno 2] No such file or directory: 'git'"

and when I rerun the cell, I get 'LoggerMisconfigurationError: The pytorch lightning trainer that was passed to exp_manager contained a logger, and either create_tensorboard_logger: True or create_wandb_logger: False or create_mlflow_logger: Falseor create_dllogger_logger: False was set to True. These can only be used if trainer does not already have a logger. You can disable lighning's trainer from creating a logger by passing logger=False to its constructor'

I am using conda environment, which is recommended in README(python 3.10.12, cuda 11.8 etc)

freshpearYoon avatar Apr 28 '24 15:04 freshpearYoon