microsoft / microsoft/qlib

AttributeError where execute qrun examples/.../xxx.yaml.

Open
#1,701 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

❓ Questions and Help

Hello, I installed qlib using pip with miniconda in ubuntu.All is well but when I executed "qrun examples/.../xxx.yaml".There is AttributeError:
"safe_load()" has been removed, use

yaml = YAML(typ='safe', pure=True)
yaml.load(...)

instead of file "/home/***/lib/python3.8/site-packages/qlib/workflow/cli.py", line 71

    config = yaml.safe_load(fp)

Would you tell me what should I do ?

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

Read qlib/workflow/cli.py around line 71 and reproduce the failure with qrun examples/.../xxx.yaml. Check the YAML-loading API indicated by the traceback; done means qrun accepts the example without raising the AttributeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.