problem in exp_manager
State: closed | Pull request: no
Labels: name: bug

name: stale

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](vscode-notebook-cell:?execution_count=164&line=1)
----> [1](vscode-notebook-cell:?execution_count=164&line=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](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:510), in exp_manager(trainer, cfg)
    [507](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:507)     _file.write(" ".join(sys.argv))
    [509](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:509) # Try to get git hash
--> [510](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:510) git_repo, git_hash = get_git_hash()
    [511](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:511) if git_repo:
    [512](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py: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](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:786), in get_git_hash()
    [776](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:776) """
    [777](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:777) Helper function that tries to get the commit hash if running inside a git folder
    [778](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:778) 
   (...)
    [781](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:781)     str: git subprocess output or error message
    [782](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:782) """
    [783](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:783) try:
    [784](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:784)     return (
    [785](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:785)         True,
--> [786](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:786)         subprocess.check_output(['git', 'rev-parse', 'HEAD'], stderr=subprocess.STDOUT).decode(),
    [787](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:787)     )
    [788](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/site-packages/nemo/utils/exp_manager.py:788) except subprocess.CalledProcessError as err:
...
   [1862](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/subprocess.py:1862)         err_msg = os.strerror(errno_num)
-> [1863](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/subprocess.py:1863)     raise child_exception_type(errno_num, err_msg, err_filename)
   [1864](https://vscode-remote+ssh-002dremote-002bwork-0040127-002e0-002e0-002e1-003a62850.vscode-resource.vscode-cdn.net/home/work/playtherapy/nemo/~/.conda/envs/nemo/lib/python3.10/subprocess.py: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)


This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

This issue was closed because it has been inactive for 7 days since being marked as stale.