Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading warning about PyYAML #1153

Open
Tumulte opened this issue Oct 4, 2022 · 0 comments · May be fixed by #1168
Open

Misleading warning about PyYAML #1153

Tumulte opened this issue Oct 4, 2022 · 0 comments · May be fixed by #1168

Comments

@Tumulte
Copy link

Tumulte commented Oct 4, 2022

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

@bonjourmauko bonjourmauko linked a pull request Dec 15, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant