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
1,459 views

1 answer to this question.

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
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
79 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
124 views
0 votes
1 answer
0 votes
1 answer