Error saying "ImportError: No module named yaml"

0 votes

I'm trying to install an Ansible role but I end up with this error:

ImportError: No module named yaml

What is the issue?

Jan 28 in Ansible by Neel
561 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

This error means It is unable to find the yaml package which is provided by PyYaml pip package. 

If you have a requirement.yaml file, add the following

pip install pyyaml 

Or if you already have pyyaml then check the version and let me know:

pip show pyyaml
answered Jan 28 by Barbara

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying no module boto3 even though I have it.

Hey @Liala, try using hosts as localhost ...READ MORE

answered Feb 9 in Ansible by Monish
52 views
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.