uber-archive / plato-research-dialogue-system

This is the Plato Research Dialogue System, a flexible platform for developing conversational AI agents.
Apache License 2.0
979 stars 191 forks source link

CLoader in runPlatoDRS.py #1

Closed WR1171 closed 4 years ago

WR1171 commented 4 years ago

Installed, wouldn't work - runPlatoRDS.py line 298 had

cfg_parser = yaml.load(file, Loader=yaml.CLoader)

Changed to

cfg_parser = yaml.load(file, Loader=yaml.Loader)

and it worked

apapangelis commented 4 years ago

Good catch, thanks!

namanUIUC commented 4 years ago

@WR1171 @apapangelis The issue is because pyyaml skips libyaml bindings (CLoader) if it's unable to find it. Check this out [issue].

Alternative fix:

Install libyaml-dev (debian package) sudo apt-get install libyaml-dev

Then upgrade pyyaml version pip install pyyaml --upgrade

This should work without changing the code.