Comments (6)
I experienced the same issue when I use Grequests (0.1.0) after I upgraded Requests to 1.0.4:
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import grequests
>>> urls = ["http://google.com", "http://github.com"]
>>> rs = (grequests.get(u) for u in urls)
>>> grequests.map(rs)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/grequests.py", line 79, in map
requests = list(requests)
File "<stdin>", line 1, in <genexpr>
File "/usr/local/lib/python2.7/dist-packages/grequests.py", line 44, in wrapped
return f(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
TypeError: request() got an unexpected keyword argument 'return_response'
>>>
from grequests.
grequests has not been updated for requests 1.0 yet.
from grequests.
So I asked on StackOverflow if somebody knew what it was: http://stackoverflow.com/questions/14238398/requests-1-0-4-asynchronous-requests/14238470#comment19755972_14238470
Probably https://github.com/sigmavirus24 has a patch coming up https://github.com/sigmavirus24/grequests
from grequests.
Thanks for the fix! Could you push it up to pypi?
from grequests.
@coryking it's already in PyPI https://pypi.python.org/pypi/grequests/0.2.0
pip install --upgrade grequests
from grequests.
Hah... I had pulled down the binary on monday, probably before you did the update. I never thought to refresh the browser window to see if you updated between monday and today.
Thanks!!
from grequests.
Related Issues (20)
- Suggestion about project usage HOT 2
- Why is this project described as asynchronous if it doesn't use asyncio? HOT 1
- http pipelining over single TCP connection HOT 8
- unexpected behavior of stream=True
- Introduce grequests error report in django project HOT 4
- How to download files and save to local HOT 2
- How to show a status code HOT 2
- Grequests is creating Recursion errors due to invalid monkey patch HOT 3
- response is None HOT 4
- Grequest returns empty generators HOT 2
- How to convert response for a json HOT 1
- limit number of requests per second. HOT 1
- why size is no affect in map? HOT 1
- Add index in imap HOT 3
- Params of get/post functions HOT 3
- Import fails HOT 1
- Grequests warning and crash HOT 3
- Docker crash HOT 2
- Request for image HOT 2
- Append wait time or rate for every thread due to server limits HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grequests.