In my code (https://github.com/chembl/chembl_webresource_client/blob/master/chembl_webresource_client/web_resource.py#L98)
I'm calling grequests.map
:
ret = grequests.map(rs, size=50)
with rs
as list of URLs. If the size of that list is larger than some value (i my case 300) I'm getting:
File "/Library/Python/2.7/site-packages/gevent/hub.py", line 331, in switch
return greenlet.switch(self)
gevent.hub.LoopExit: This operation would block forever
regardless of size
parameter (i tried different values between 10 and 50 as well as ignoring this argument completely).
This happens only on macOS. In Ubuntu any size of URLs list works.
I'll appreciate any help as this is a showstopper for my small library.