Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

PyPI's XML-RPC is deprecated #227

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

PyPI's XML-RPC is deprecated #227

webknjaz opened this issue Sep 9, 2024 · 4 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.

webknjaz added a commit to webknjaz/ansible--awx-plugins that referenced this issue Sep 25, 2024
@webknjaz
Copy link
Member Author

@dhellmann
Copy link
Member

It sounds like that feature should be disabled by default until it's clear what alternatives might exist. I'm not likely to have time to do anything about that for a while, but if someone was to submit a PR I could review it.

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

No branches or pull requests

2 participants