Skip to content

Commit

Permalink
[ConfigFix] Specify PyYAML version
Browse files Browse the repository at this point in the history
[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 <[email protected]>
  • Loading branch information
pranavprakash20 committed Oct 20, 2021
1 parent 24e5455 commit 522c30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
'glusto = glusto.main:main',
]
},
install_requires=['plumbum', 'rpyc', 'PyYAML', 'jinja2',
install_requires=['plumbum', 'rpyc', 'PyYAML==5.4.1', 'jinja2',
'pytest', 'nose', 'unittest-xml-reporting']
)

0 comments on commit 522c30e

Please sign in to comment.