Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
w5688414 opened this issue Oct 12, 2019 · 5 comments

Comments

@w5688414
Copy link

w5688414 commented Oct 12, 2019

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

@talisaMing
Copy link

I have the same problem.How to fix it?

@LeeSureman
Copy link
Owner

LeeSureman commented Oct 14, 2019

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.

@w5688414
Copy link
Author

@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

@LeeSureman
Copy link
Owner

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

@w5688414
Copy link
Author

@LeeSureman thanks for your help, it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants