pip search 出来ずにお困りの方は pypiutil.py をお試し下さい。
Ubuntu 20.04.1 LTS で python3.8 の pip 20.0.2 で search すると xmlrpc.client.Fault で腐る
「pip3 search xmlrpc.client.Fault Fault 32500: RuntimeError: This API has been temporarily disabled」でググったら以下のページを見つけた。
なんか、 が紹介されてたんだけど、
2021-02-04: 追記
pip3 search 出来んの地味に不便なので、pypiutil.sh 書いた。
2021-02-28: 追記
練習がてら、Python3 への移植版 pypiutil.py を書いてみた。
$ python3 --version Python 3.8.5
$ pip3 --version pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
$ pip3 search jupyter ERROR: Exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 186, in _main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/_internal/commands/search.py", line 52, in run pypi_hits = self.search(query, options) File "/usr/lib/python3/dist-packages/pip/_internal/commands/search.py", line 71, in search hits = pypi.search({'name': query, 'summary': query}, 'or') File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__ return self.__send(self.__name, args) File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request response = self.__transport.request( File "/usr/lib/python3/dist-packages/pip/_internal/network/xmlrpc.py", line 38, in request return self.parse_response(response.raw) File "/usr/lib/python3.8/xmlrpc/client.py", line 1341, in parse_response return u.close() File "/usr/lib/python3.8/xmlrpc/client.py", line 655, in close raise Fault(**self._stack[0]) xmlrpc.client.Fault: <Fault -32500: 'RuntimeError: This API has been temporarily disabled due to unmanageable load and will be deprecated in the near future. Please use the Simple or JSON API instead.'>
「pip3 search xmlrpc.client.Fault Fault 32500: RuntimeError: This API has been temporarily disabled」でググったら以下のページを見つけた。
- stackoverflow / 2020-12-15: error using pip search (pip search stopped working)
- GitHub / pypa / pip / issues /Please use the Simple or JSON API instead #9292
- Hacker News / 2020-12-15: Pip search pretty much broken globally (reddit.com)
なんか、 が紹介されてたんだけど、
Updateとかなんとかで、どうも XMLRPC Search endpoint への継続的なアクセスが殺到していて、サービスを止めざるを得ない状況っぽい。
The XMLRPC Search endpoint is still disabled due to ongoing request volume. As of this update, there has been no reduction in inbound traffic to the endpoint from abusive IPs and we are unable to re-enable the endpoint, as it would immediately cause PyPI service to degrade again. We are working with the abuse contact at the owner of the IPs and trying to make contact with the maintainers of whatever tool is flooding us via other channels.
Posted 2 days ago. Dec 15, 2020 - 20:59 UTC
2021-02-04: 追記
pip3 search 出来んの地味に不便なので、pypiutil.sh 書いた。
2021-02-28: 追記
練習がてら、Python3 への移植版 pypiutil.py を書いてみた。
コメント欄で、PyPiSearch_exe なんて物が出回り始めてるみたいな情報をもらったのだが、
誤検出の可能性は残るにしても VirusTotal 先生はこんな状態なのでリンクは外しとく。
strings 取ってみると python37.dll とか文字が混ざってるので .py を .exe 化してそうな雰囲気なんだけど、PyPi なんて Python 使ってない人間は使わないわけだし、Windows 以外の人もいるのになぜ exe 配布なのか意味がわからないよ。
しかもソース付属してないとか、隠す意味。
検索も、このページと GitHub の topics しかひっかからんし、
トレンドもゼロだし、
これ標的型攻撃なんじゃ?
- GitHub / AiueoABC / PyPiSearch_exe
誤検出の可能性は残るにしても VirusTotal 先生はこんな状態なのでリンクは外しとく。
- https://www.virustotal.com/gui/file/1985bba67892a1... : PyPiSearch_exe
- https://www.virustotal.com/gui/file/b56c24833b28a2... : main.zip/PyPiSearch_exe
しかもソース付属してないとか、隠す意味。
検索も、このページと GitHub の topics しかひっかからんし、
- Google: PyPiSearch_exe
トレンドもゼロだし、
- Google Trends: PyPiSearch_exe
これ標的型攻撃なんじゃ?
タグ
このページへのコメント
pip searchできなくて困っていたので読ませていただきました。
地味に不便ですよね、これ。
GitHubに代替品みたいなの(PyPiSearch_exeみたいなものです)が出回り始めていますが、そっちのもいつか落ちるんじゃないかとヒヤヒヤです。