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

xmlrpc.client.Fault: <Fault -32500: 'HTTPTooManyRequests: The action could not be performed because there were too many requests by the client. Limit may reset in 0 seconds.'> #133

Open
matwey opened this issue Oct 25, 2020 · 6 comments

Comments

@matwey
Copy link
Member

matwey commented Oct 25, 2020

Hello,

I am running python3-py2pack-0.8.4-lp152.1.1.noarch and see the following:

> py2pack generate flatten-dict -t opensuse.spec
Traceback (most recent call last):
  File "/usr/bin/py2pack", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/py2pack/__init__.py", line 350, in main
    args.func(args)
  File "/usr/lib/python3.6/site-packages/py2pack/__init__.py", line 225, in generate
    check_or_set_version(args)
  File "/usr/lib/python3.6/site-packages/py2pack/__init__.py", line 273, in check_or_set_version
    args.version = pypi.package_releases(args.name)[0]              # return first (current) release number
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1154, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1170, in single_request
    return self.parse_response(resp)
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 1342, in parse_response
    return u.close()
  File "/usr/lib64/python3.6/xmlrpc/client.py", line 656, in close
    raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32500: 'HTTPTooManyRequests: The action could not be performed because there were too many requests by the client. Limit may reset in 0 seconds.'>
@coogor
Copy link

coogor commented Oct 26, 2020

I see the same with py2pack-0.8.4 on Tumbleweed

@toabctl
Copy link
Member

toabctl commented Oct 27, 2020

Same here when running the test suite with tox -epy38. pypi/warehouse#4553 might be related.

@coogor
Copy link

coogor commented Oct 27, 2020

That may be a good point in time to introduce an offline-mode - why should a package be fetched from pypi if it is already available in a directory? (If there is already one - even better, but did not find it)

@bnavigator
Copy link
Contributor

It might also be worth to migrate away from the deprecated XML-RPC API where it is possible.

@bnavigator
Copy link
Contributor

There is a question on the openSUSE packaging mailing list, when this will be fixed.

https://lists.opensuse.org/opensuse-packaging/2020-11/msg00000.html

#135 fixes the immediate problem. It would be great if you made a new release.

@toabctl
Copy link
Member

toabctl commented Nov 10, 2020

I answered on the ML. New pypi release is on its way.

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

4 participants