qlib icon indicating copy to clipboard operation
qlib copied to clipboard

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

Open Javajava1 opened this issue 2 years ago • 1 comments

❓ 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 ?

Javajava1 avatar Nov 30 '23 07:11 Javajava1

I think that lowering your ruamel.yaml version might solve the problem. Ref: https://github.com/microsoft/qlib/blob/main/setup.py#L77

SunsetWolf avatar Dec 22 '23 05:12 SunsetWolf