[繁体中文]             |

赛壶网

头部广告

yum命令安装软件时出现"Exiting on user cancel"错误的解决办法

[复制链接]
分享奖励排行榜
发表于 2020-1-1 09:21:37 | 显示全部楼层 |阅读模式

解决办法:修改/usr/lib/python2.7/site-packages/urlgrabber/grabber.py文件,注释掉两行代码。如下:

elif errcode in (42, 55, 56):
  # this is probably wrong but ultimately this is what happens
  # we have a legit http code and a pycurl 'writer failed' code
  # which almost always means something aborted it from outside
  # since we cannot know what it is -I'm banking on it being
  # a ctrl-c. XXXX - if there's a way of going back two raises to
  # figure out what aborted the pycurl process FIXME
  raise KeyboardInterrupt

修改后:

#elif errcode in (42, 55, 56):
  # this is probably wrong but ultimately this is what happens
  # we have a legit http code and a pycurl 'writer failed' code
  # which almost always means something aborted it from outside
  # since we cannot know what it is -I'm banking on it being
  # a ctrl-c. XXXX - if there's a way of going back two raises to
  # figure out what aborted the pycurl process FIXME
  #raise KeyboardInterrupt


有人访问你的分享时,你将获得奖励(每次1金钱,重复访问不计)

评论

使用道具 举报

使用高级回帖 (可批量传图、插入视频等)快速回复

您需要登录后才可以回帖 登录 | 立即加入

本版积分规则   Ctrl + Enter 快速发布  

发帖时请遵守我国法律,网站会将有关你发帖内容、时间以及发帖IP地址等记录保留,只要接到合法请求,即会将信息提供给有关政府机构。
快速回复 返回顶部 返回列表