Batch_Parallel_LatticeLSTM icon indicating copy to clipboard operation
Batch_Parallel_LatticeLSTM copied to clipboard

RuntimeError: It seems like you are not running under a folder governed by fitlog.

Open w5688414 opened this issue 5 years ago • 5 comments

when I run main file, I got an error: RuntimeError: It seems like you are not running under a folder governed by fitlog.

full error is: Batch_Parallel_LatticeLSTM git:(master) ✗ python main.py --dataset resume Reach the root or home. Can not find the config file. Traceback (most recent call last): File "main.py", line 52, in <module> fitlog.commit(__file__,fit_msg=fit_msg) File "/home/eric/anaconda3/lib/python3.7/site-packages/fitlog/__init__.py", line 65, in commit _logger.commit(file, fit_msg) File "/home/eric/anaconda3/lib/python3.7/site-packages/fitlog/fastlog/logger.py", line 27, in wrapper return func(*args, **kwargs) File "/home/eric/anaconda3/lib/python3.7/site-packages/fitlog/fastlog/logger.py", line 96, in commit raise RuntimeError("It seems like you are not running under a folder governed by fitlog.\n" + msg['msg']) RuntimeError: It seems like you are not running under a folder governed by fitlog. Error: Config file is not found

w5688414 avatar Oct 12 '19 06:10 w5688414

I have the same problem.How to fix it?

talisaMing avatar Oct 14 '19 11:10 talisaMing

sorry for late reply. You should manually init fitlog in your project dictionary,please refer to https://fitlog.readthedocs.io/zh/latest/
And if you want to run the main quickly, you can choice one of the following:

  1. run command 'fitlog init' in folder which has main.py (maybe after it, the original main.py will be coverd, just recover the main.py)
  2. run main_without_fitlog.py, I just uploaded it.

And, fitlog is a very nice tool for experiment result record, witch may be very helpful to you.

LeeSureman avatar Oct 14 '19 12:10 LeeSureman

@LeeSureman the problem has been solved, thanks, but I met another problem: ModuleNotFoundError: No module named 'fastNLP.io.data_loader' my falst nlp version is 0.5.0, I don't know why

w5688414 avatar Oct 15 '19 10:10 w5688414

@w5688414 maybe it' renamed by fastNLP.io.loader, and I have fixed it in code.

LeeSureman avatar Oct 15 '19 12:10 LeeSureman

@LeeSureman thanks for your help, it works

w5688414 avatar Oct 17 '19 01:10 w5688414