沉痛悼念 pip search 一路走好

沉痛悼念 pip search 一路走好,第1张

沉痛悼念 pip search 一路走好

不知道最近大家有没有发现在使用 pip search 的时候,总是出现一个 XMLRPC 的报错。

$ pip search xlrd
ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information.

报错信息最后提示参阅 https://status.python.org/,打开之后发现是 PyPI 的问题:

简单来说,就是就是 PyPI 的 search 功能的后端实现突然遭遇超大量的超时和失败,导致通过 XMLRPC 的登录动作和 search api 全线崩溃。跟踪之后发现有人走 XMLRPC(并不能确定是“恶意”,但是一定是“滥用”)向 search 后端发了大的出奇的请求包导致后端崩溃,因此 PyPI 的 search 功能将被无限期封掉,直到更新。

而截止 2021-03-24 的最近更新,由于至今仍不明来源的、持续了100天的 XMLRPC 滥用,Python.org 的 XMLRPC 将永久停止响应。


✎ 


Update - We are now at 100 days since the decision to disable the XMLRPC search endpoint.


Traffic to the endpoint has not subsided in any substantial way and we have not heard from any of the parties who continue to issue hundreds of thousands of search calls per hour.


As such, XMLRPC search will be permanently disabled.


Mar 2414:22 UTC


这意味着 pip 的 search 功能将不再可用。现在,如果你输入 pip search,将会显示以下内容:

$ pip search xlrd
ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be 
deprecated in the near future. See https://status.python.org/ for more information.
所以,要想搜索包,可能只能直接访问 PyPI ,或使用 pipsearch 这样的包,或者和我一样转向 conda search 吧。


Python 中常见的 TypeError 是什么?

2021-04-16

Python 列表、字典、元组的一些小技巧

2021-03-30

JupyterLab Server 搭建与使用笔记

2020-09-29

如何卸载 python setup.py install 安装的包?

2020-05-15

生物信息学 Python 入门之源码安装

2019-09-29


本文分享自微信公众号 - 生信科技爱好者(bioitee)。
如有侵权,请联系 [email protected] 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/4655787.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-06
下一篇 2022-11-06

发表评论

登录后才能评论

评论列表(0条)