Troubleshoot Yum Python grabber.py error in CentOS7

To troubleshoot Yum Python grabber.py error in CentOS7:

 

In CentOS 7.0, you will get errors for grabber.py while running “yum update” command.
Please follow the following steps to resolve this issue till next update.
1. Open /usr/lib/python2.7/site-packages/urlgrabber/grabber.py in preferable editor
vi /usr/lib/python2.7/site-packages/urlgrabber/grabber.py
2. Go to line number 1510. Below command is for VI editor only.
:1510
3. Change “elif errcode in (42, 55, 56):”  to “elif errcode == 42:"
 
4. Now run yum update or any command related to you.
\

Neelesh Gurjar has written 122 articles