Navigation Menu

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

Misleading error message when config file name is empty #275

Closed
aloukina opened this issue Jan 15, 2016 · 1 comment
Closed

Misleading error message when config file name is empty #275

aloukina opened this issue Jan 15, 2016 · 1 comment
Assignees
Milestone

Comments

@aloukina
Copy link
Collaborator

Running run_experiment " " leads to the following error message which is misleading about the nature of the problem and confusingly seems to reference older specs for the config file:

Traceback (most recent call last):
  File "/home/aloukina/miniconda3/envs/rsmtool/bin/run_experiment", line 6, in <module>
    sys.exit(main())
  File "/home/aloukina/miniconda3/envs/rsmtool/lib/python3.4/site-packages/skll/utilities/run_experiment.py", line 108, in main
    ablation=ablation, resume=args.resume)
  File "/home/aloukina/miniconda3/envs/rsmtool/lib/python3.4/site-packages/skll/experiments.py", line 697, in run_configuration
    custom_learner_path) = _parse_config_file(config_file)
  File "/home/aloukina/miniconda3/envs/rsmtool/lib/python3.4/site-packages/skll/config.py", line 247, in _parse_config_file
    raise ValueError("Configuration file does not contain experiment_name "
ValueError: Configuration file does not contain experiment_name in the [Input] section.

Passing empty line instead of the config file can happen when one (incorrectly) generates a number of jobs programmatically, so it would be good to catch this.

@desilinguist desilinguist added this to the 1.2 milestone Jan 15, 2016
@desilinguist
Copy link
Member

Addressed by #281.

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

2 participants