From 522c30e1530bd0d91ac86fb00a28cd2045b5f1fb Mon Sep 17 00:00:00 2001 From: Pranav Date: Wed, 20 Oct 2021 11:16:21 +0530 Subject: [PATCH] [ConfigFix] Specify PyYAML version [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] https://github.com/yaml/pyyaml/issues/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 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f796cdf..515d51b 100644 --- a/setup.py +++ b/setup.py @@ -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'] )