[root@localhost ~]# yum -y groupinstall 'Development Tools'
......
File "/usr/libexec/urlgrabber-ext-down", line 75, in <module>
main()
File "/usr/libexec/urlgrabber-ext-down", line 61, in main
fo = PyCurlFileObject(opts.url, opts.filename, opts)
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1258, in __init__
self._do_open()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1589, in _do_open
self._do_grab()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1723, in _do_grab
self._do_perform()
File "/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1517, in _do_perform
raise KeyboardInterrupt
KeyboardInterrupt
这个问题是由urlgrabber python脚本中的一个bug引起的:要缓解这个问题,可以从/usr/lib/python2.7/site-packages/urlgrabber/grabber.py编辑第1510行
解决方案:
打开这个文件:/usr/lib/python2.7/site-packages/urlgrabber/grabber.py
找到 elif errcode in (42, 55, 56):
用 elif errcode == 42:替换
---------------------
作者:郑浩-
来源:CSDN
原文:https://blog.csdn.net/hao134838/article/details/60326892
版权声明:本文为博主原创文章,转载请附上博文链接!