Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PyPI's XML-RPC is deprecated #227

Open
webknjaz opened this issue Sep 9, 2024 · 2 comments
Open

PyPI's XML-RPC is deprecated #227

webknjaz opened this issue Sep 9, 2024 · 2 comments

Comments

@webknjaz
Copy link
Member

webknjaz commented Sep 9, 2024

Got this in CI half an hour ago:

Exception occurred:
  File "/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/xmlrpc/client.py", line 668, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: 'RuntimeError: PyPI no longer supports the XMLRPC list_packages method. Use JSON or Simple API instead. See https://github.com/pypi/warehouse/issues/16642 and https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods for more information.'>
The full traceback has been saved in /tmp/sphinx-err-q6f1kt1m.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <[https://github.com/sphinx-doc/sphinx/issues](https://github.com/sphinx-doc/sphinx/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen)>. Thanks!

(https://github.com/ansible/awx-plugins/actions/runs/10774764535/job/29877727274#step:18:45)

https://warehouse.pypa.io/api-reference/xml-rpc.html#deprecated-methods has

Use the Simple API to query for list of project names with releases on PyPI.

@webknjaz
Copy link
Member Author

webknjaz commented Sep 9, 2024

A CI job rerun succeeded. So they've probably configured hard failures for a certain percentage of requests. FYI.

@webknjaz
Copy link
Member Author

webknjaz commented Sep 19, 2024

It doesn't seem like it can be replaced with JSON API. Perhaps, it's possible to grab this data from the BigQuery dataset instead: https://warehouse.pypa.io/api-reference/bigquery-datasets.html / https://packaging.python.org/en/latest/guides/analyzing-pypi-package-downloads/.

Meanwhile, I suppose the current workaround is spelling_ignore_pypi_package_names = False.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant