kLabUM / pystorms

Simulation Sandbox for the Design and Evaluation of Stormwater Control Algorithms
https://pystorms.netlify.app
GNU General Public License v3.0
30 stars 16 forks source link

module 'yaml' has no attribute 'FullLoader' #4

Closed Jiadalee closed 4 years ago

Jiadalee commented 4 years ago

I got an error when I'm testing the example. Seems like the yaml,py should be renamed?https://stackoverflow.com/questions/9286637/pyyaml-error-attribute-error-no-attribute-load

image

abhiramm7 commented 4 years ago

Hi Jiada,

It seems that yaml.FullLoader seems to be part of the PyYAML (https://pyyaml.org/wiki/PyYAML#history) 5.1 or greater. Can you verify the version you have on your end. Thanks for pointing this out, I will update the requirements to indicate the specific versions.

Jiadalee commented 4 years ago

Hi Abhi,

The PyYAML version is 5.3.1 but the yaml version is 3.1.3 in my side.

abhiramm7 commented 4 years ago

Issue seems to be similar to https://stackoverflow.com/questions/55551191/module-yaml-has-no-attribute-fullloader. Can you try it and let me know if it helps?

Jiadalee commented 4 years ago

@abhiramm7 It works now. Thank you very much!