Skip to content

Conversation

@OscarFree
Copy link

Summary

ruamel.yaml 0.19.0 was released on 2025-12-31 and introduced breaking changes to the max_depth API. This causes the following error when using hyperpyyaml:

'Loader' object has no attribute 'max_depth'

This PR pins ruamel.yaml to <0.19.0 to prevent the incompatibility until a proper fix can be implemented.

Context

  • ruamel.yaml 0.19.0 changelog mentions: "added .max_depth to YAML() instance"
  • The error occurs during model loading in SpeechBrain-based projects
  • Many users are likely to hit this issue as they update dependencies

Test plan

  • Verified that pinning ruamel.yaml<0.19.0 resolves the error
  • Existing tests should continue to pass

cc @GaetanLepage @pplantinga

ruamel.yaml 0.19.0 (released 2025-12-31) introduced breaking changes
to the max_depth API that cause 'Loader' object has no attribute
'max_depth' errors when using hyperpyyaml.

This pins ruamel.yaml to <0.19.0 until the compatibility issue is resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant