spyoungtech / grequests

Requests + Gevent = <3
https://pypi.python.org/pypi/grequests
BSD 2-Clause "Simplified" License
4.49k stars 331 forks source link

map() got an unexpected keyword argument 'exception_handler' #61

Closed legalimpurity closed 8 years ago

legalimpurity commented 10 years ago

i get this error TypeError:map() got an unexpected keyword argument 'exception_handler'

i am getting it on this line

manresponse =grequests.map(rs,exception_handler = eception_handler) any help ??

rtdean commented 10 years ago

exception handling has been added since 0.2.0 was released; there is not currently a new release with exception handling present. If you installed from pypi (via pip or otherwise), your grequests doesn't have the new exceptions support.

You'll need to clone the repo and install yourself, or install with something like pip install git+https://github.com/kennethreitz/grequests.git. There are, however, a few issues with exception handling as it stands in master... there are a few open issues and PRs about it. You might want to take a look at #58 for example.

legalimpurity commented 10 years ago

oh, thanx i have wasted the last few hours trying to fix this, thanx for the quick reply !!

zoidyzoidzoid commented 9 years ago

Is there any chance of this getting a new release on pypi?

niknoproblems commented 8 years ago

same error with grequest 0.2.0, python 2.7.10

rtdean commented 8 years ago

@nickflamel, there still hasn't been an official release with exception handling added into it. You need to build from the master branch.

kennethreitz commented 8 years ago

Will be released shortly!