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
17,415 views

2 answers 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
0 votes
actually this related python pckage in order to slove this issue type this

sudo apt-get install python-yaml
answered Jul 18, 2020 by shivanand

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 4,540 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
1,603 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,016 views
+2 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP