Title: Fix for python 3.7-3.9 by hwms · Pull Request #426 · python-hyper/hyper · GitHub
Open Graph Title: Fix for python 3.7-3.9 by hwms · Pull Request #426 · python-hyper/hyper
X Title: Fix for python 3.7-3.9 by hwms · Pull Request #426 · python-hyper/hyper
Description: This import now works on my python 3.9: from hyper.contrib import HTTP20Adapter I also needed to: pip install git+https://github.com/python-hyper/hyper-h2.git -U pip install git+https://github.com/python-hyper/hyperframe.git -U which told me that: ERROR: hyper 0.8.0.dev0 has requirement h2!=2.5.0,<3.0,>=2.4, but you'll have h2 3.2.0 which is incompatible. ERROR: hyper 0.8.0.dev0 has requirement hyperframe<4.0,>=3.2, but you'll have hyperframe 5.2.0 which is incompatible. But it works now (at least for me): Python 3.9.0a3+ (heads/master:1b55b65638, Feb 17 2020, 12:08:41) [GCC 7.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> import logging;logging.basicConfig();logging.getLogger().setLevel(logging.DEBUG) >>> import http.client;http.client.HTTPConnection.debuglevel = 1 >>> s = requests.Session() >>> r = s.get('https://httpbin.org/get') ... reply: 'HTTP/1.1 200 OK\r\n' ... >>> from hyper.contrib import HTTP20Adapter >>> s.mount('https://', HTTP20Adapter()) >>> r = s.get('https://httpbin.org/get') DEBUG:hyper.http11.connection:Selected protocol: h2 ... Maybe adding logging will help people in the quickstart to see more than a status code, too.
Open Graph Description: This import now works on my python 3.9: from hyper.contrib import HTTP20Adapter I also needed to: pip install git+https://github.com/python-hyper/hyper-h2.git -U pip install git+https://github.com/...
X Description: This import now works on my python 3.9: from hyper.contrib import HTTP20Adapter I also needed to: pip install git+https://github.com/python-hyper/hyper-h2.git -U pip install git+https://github.com/...
Opengraph URL: https://github.com/python-hyper/hyper/pull/426
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c44d8bc9-5e5c-097a-ee9e-2dfafdc0f4e4 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D2C8:FE136:31D9DFE:3285D78:69703165 |
| html-safe-nonce | cbfc278ef55b2345b0c761a6bfdb16b7a6b39451641361e5f967484e5b64fa23 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkM4OkZFMTM2OjMxRDlERkU6MzI4NUQ3ODo2OTcwMzE2NSIsInZpc2l0b3JfaWQiOiI2ODcyNTgyOTQzOTgxNzExNzE3IiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0= |
| visitor-hmac | 476502c55faf5ee03e961535675ed9663cd5a0de57db41bb50234b04047a1d0b |
| hovercard-subject-tag | pull_request:378671220 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-hyper/hyper/pull/426/checks |
| twitter:image | https://avatars.githubusercontent.com/u/2167844?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2167844?s=400&v=4 |
| og:image:alt | This import now works on my python 3.9: from hyper.contrib import HTTP20Adapter I also needed to: pip install git+https://github.com/python-hyper/hyper-h2.git -U pip install git+https://github.com/... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-hyper/hyper git https://github.com/python-hyper/hyper.git |
| octolytics-dimension-user_id | 13035907 |
| octolytics-dimension-user_login | python-hyper |
| octolytics-dimension-repository_id | 16165969 |
| octolytics-dimension-repository_nwo | python-hyper/hyper |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16165969 |
| octolytics-dimension-repository_network_root_nwo | python-hyper/hyper |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f643964067a552f02067066d6a910b2f90a5721f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width