openfisca / openfisca-core

OpenFisca core engine. See other repositories for countries-specific code & data.

Home Page:https://openfisca.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Misleading warning about PyYAML

Tumulte opened this issue · 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