Skip to content

AttributeError: 'Loader' object has no attribute 'max_depth' with ruamel.yaml 0.19+ #1769

@kobaan

Description

@kobaan

Describe the bug
when launching webui.py or example.py on MacOS 15.7.3 with python3.10:

File “/Users/kobaan/Volumes/TB4-RAID1-8TB/Python/CosyVoice/.venv/lib/python3.10/site-packages/ruamel/yaml/composer.py", line 121, in compose_node
if self.loader.max_depth and self.depth > self.loader.max_depth:
AttributeError: 'Loader' object has no attribute 'max_depth'

Solution
This can be fixed by changing in requirements.txt

HyperPyYAML==1.2.3
ruamel.yaml<0.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions