openfisca-core icon indicating copy to clipboard operation
openfisca-core copied to clipboard

Misleading warning about PyYAML

Open tumulte opened this issue 3 years ago • 0 comments

When I run openfisca I got this warning (from parameters/config.py):

libyaml is not installed in your environment. This can make OpenFisca slower to start. Once you have installed libyaml run 'pip uninstall pyyaml && pip install pyyaml --no-cache-dir' so that it is used in your Python environment.

However I do have libyaml and pyyaml installed, the problem comes from CLoader : I can import yaml, but from yaml import CLoader doesn't work (the try tests this import : from yaml import CLoader as Loader)

I suggest to change the warning to

libyaml is not installed in your environment, or your version of libyaml doesn't include CLoader

Context

I identify more as a:

  • Developer

Thanks,

best

tumulte avatar Oct 04 '22 06:10 tumulte