Skip to content

snakemake.exceptions.WorkflowError: Config file is not valid JSON or YAML #335

@mattdoug604

Description

@mattdoug604

Hello,
I am trying to run MAVIS and I am getting error.
-bash-4.2$ snakemake -j 1 --configfile mavis.cfg -s Snakefile
Traceback (most recent call last):
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/snakemake/io.py", line 1604, in _load_configfile
return yaml.load(f, Loader=OrderedLoader)
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/yaml/init.py", line 114, in load
return loader.get_single_data()
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/yaml/composer.py", line 39, in get_single_node
if not self.check_event(StreamEndEvent):
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/yaml/parser.py", line 171, in parse_document_start
raise ParserError(None, None,
yaml.parser.ParserError: expected '', but found ''
in "mavis.cfg", line 2, column 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/u/home/m/mdistler/project-jflint/anaconda3/bin/snakemake", line 33, in
sys.exit(load_entry_point('snakemake==6.15.5', 'console_scripts', 'snakemake')())
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/snakemake/init.py", line 2757, in main
success = snakemake(
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/snakemake/init.py", line 500, in snakemake
update_config(overwrite_config, load_configfile(f))
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/snakemake/io.py", line 1617, in load_configfile
config = _load_configfile(configpath)
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/site-packages/snakemake/io.py", line 1606, in _load_configfile
raise WorkflowError(
snakemake.exceptions.WorkflowError: Config file is not valid JSON or YAML. In case of YAML, make sure to not mix whitespace and tab indentation.

Thank you for help

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions