Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ConfigFix] Specify PyYAML version #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pranavprakash20
Copy link

[Problem]
With the latest version of pyYAML [> 5.4.1], the
yaml.load(f) is deprecated in favour of
yaml.load(f, Loader=loader). This causes
"""
File "/usr/local/lib/python3.6/site-packages/glusto/configurable.py", line 215, in _load_yaml
config = yaml.load(configfd)
TypeError: load() missing 1 required positional argument: 'Loader' """
More discussion on this topic [1]

[1] yaml/pyyaml#576

[Solution]
Fix the version to 5.4.1 as changing the code to accomodate
the latest method changes requires further testing.

Signed-off-by: Pranav prprakas@redhat.com

[Problem]
With the latest version of pyYAML [> 5.4.1], the
`yaml.load(f)` is deprecated in favour of
`yaml.load(f, Loader=loader)`. This causes
"""
File "/usr/local/lib/python3.6/site-packages/glusto/configurable.py", line 215, in _load_yaml
config = yaml.load(configfd)
TypeError: load() missing 1 required positional argument: 'Loader' """
More discussion on this topic [1]

[1] yaml/pyyaml#576

[Solution]
Fix the version to 5.4.1 as changing the code to accomodate
the latest method changes requires further testing.

Signed-off-by: Pranav <prprakas@redhat.com>
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