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, 2019 in Ansible by Neel
3,282 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, 2019 by Barbara

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer

Error saying "ImportError: No module named ansible.playbook" when installing ansible on aws

Hey @Niana, I don't think you have ...READ MORE

answered Feb 4, 2019 in Ansible by Anushri

edited Feb 6, 2019 896 views
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, 2019 in Ansible by Monish
277 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,400 points
350 views
0 votes
1 answer
0 votes
1 answer