沉痛悼念 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 的問題:

86ca347b-e4af-47f7-8f8f-daf2bf4081ce.png
簡單來說,就是就是 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 吧。
b2d7a4d2-e59b-4301-962d-3ac2ca3d54e9.png

589ad0a1-7e85-42ac-bdc1-c564c094068a.gif


Python 中常見的 TypeError 是什么?

2021-04-16

dc568dc8-6837-439b-9baf-d0ed730d5766.jpg

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

2021-03-30

6d802315-675b-444c-9286-ae0b9e313856.jpg

JupyterLab Server 搭建與使用筆記

2020-09-29

d5881c26-c34b-409d-b5c1-2ebfff049358.jpg

如何卸載 python setup.py install 安裝的包?

2020-05-15

a5d58e2b-abfb-41f8-8c27-5cf6672ceabb.jpg

生物信息學 Python 入門之源碼安裝

2019-09-29

8a87ef21-511e-4533-846d-1a7078bdf15e.jpg


3baef6ca-c201-4dbe-adc4-fc13cc822ae4.png

本文分享自微信公眾號 - 生信科技愛好者(bioitee)。
如有侵權,請聯系 support@oschina.cn 刪除。
本文參與“OSC源創計划”,歡迎正在閱讀的你也加入,一起分享。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM