microsoft / microsoft/qlib

TypeError in run_all_models.py

Open
#816 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

🐛 Bug Description

File "run_all_model.py", line 385, in
fire.Fire(ModelRunner) # run all the model
File "/home/wlh/anaconda3/envs/qlib/lib/python3.7/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/wlh/anaconda3/envs/qlib/lib/python3.7/site-packages/fire/core.py", line 471, in _Fire
target=component.name)
File "/home/wlh/anaconda3/envs/qlib/lib/python3.7/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "run_all_model.py", line 40, in _return_wrapped
return function_to_decorate(*args, **kwargs)
File "run_all_model.py", line 320, in run
yaml_path = gen_yaml_file_without_seed_kwargs(yaml_path, temp_dir)
File "run_all_model.py", line 190, in gen_yaml_file_without_seed_kwargs
config = yaml.load(fp)
TypeError: load() missing 1 required positional argument: 'Loader'

To Reproduce

Steps to reproduce the behavior:

1.python run_all_model.py run 3

Expected Behavior

Screenshot

image

Environment

Note: User could run cd scripts && python collect_info.py all under project directory to get system information
and paste them here directly.

  • Qlib version:newest
  • Python version:3.7
  • OS (Windows, Linux, MacOS):linux
  • Commit number (optional, please provide it if you are using the dev version):

Additional Notes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with run_all_model.py at gen_yaml_file_without_seed_kwargs around line 190, where the reported yaml.load error occurs. Run python run_all_model.py run 3 in the stated Python 3.7 Linux environment; done means the command no longer raises the missing Loader TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, machine-learning
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.