-
Notifications
You must be signed in to change notification settings - Fork 136
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
Bug in httplib2 patch #92
Comments
Hi @anvu03, I had the same issue. Issue occurs with connections using https. I resolved it in that way: below is pip install command (just copy and paste) |
Is this still an issue? Closing due to lack of activity but we can reopen if needed. |
It is still there: python -mvenv test4
./test4/bin/pip install -U pip
# Successfully installed pip-23.3.1
./test4/bin/pip install geventhttpclient
# Successfully installed brotli-1.1.0 certifi-2023.7.22 gevent-23.9.1 geventhttpclient-2.0.11 greenlet-3.0.1 six-1.16.0 zope.event-5.0 zope.interface-6.1
./test4/bin/pip install httplib2
# Successfully installed httplib2-0.22.0 pyparsing-3.1.1
Python 3.11.5 (main, Sep 2 2023, 10:01:39) [GCC 11.3.1 20221209] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import geventhttpclient.httplib; geventhttpclient.httplib.patch()
>>> import httplib2
>>> httplib2.Http().request('https://google.pl', method='GET')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/users/me/test4/lib/python3.11/site-packages/httplib2/__init__.py", line 1581, in request
conn = self.connections[conn_key] = connection_type(
^^^^^^^^^^^^^^^^
File "/home/users/me/test4/lib/python3.11/site-packages/httplib2/__init__.py", line 1109, in __init__
super(HTTPSConnectionWithTimeout, self).__init__(
File "/home/users/me/test4/lib/python3.11/site-packages/geventhttpclient/httplib.py", line 118, in __init__
HTTPConnection.__init__(self, host, port, **kw)
File "/home/users/me/test4/lib/python3.11/site-packages/geventhttpclient/httplib.py", line 95, in __init__
HTTPLibConnection.__init__(self, *args, **kw)
TypeError: HTTPConnection.__init__() got an unexpected keyword argument 'context'
|
@cyberw could you please reopen this bug? |
Improves httplib2 patching Fixes #92 Improves benchmarks and examples
Improves httplib2 patching Fixes #92 Improves benchmarks and examples
Improves httplib2 patching Fixes #92 Improves benchmarks and examples
Improves httplib2 patching Fixes #92 Improves benchmarks and examples
Improves httplib2 patching Fixes #92 Improves benchmarks and examples
Improves httplib2 patching Fixes #92 Improves benchmarks and examples
Fixes http.client patching #92 Improves httplib2 interoperability, provides a drop-in replacement Improves benchmarks and examples
I tried to use httplib2 patch as shown in geventhttpclient.
Here is there error i had:
The text was updated successfully, but these errors were encountered: