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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0c9192f1-2afc-1cac-c154-d0e3294e97db |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E0C0:26FE0E:3092A65:3137711:69702CB3 |
| html-safe-nonce | 2b00e83a2b664d59493b7cc65d55be9d8777ba6d0bc50ebcc0285ec02988fcad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEMwOjI2RkUwRTozMDkyQTY1OjMxMzc3MTE6Njk3MDJDQjMiLCJ2aXNpdG9yX2lkIjoiNTc2ODE2NTIzMDg5ODA2NDU2MyIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 7cb853ba92a186d739ca192e717dc4e560fa32b591f76a6f2113c3c007bec76c |
| hovercard-subject-tag | pull_request:378671220 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 | 01fa379f5de85ef8e791d09724e69709ce9eb9595278316e0a921312dc88e0bc |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dda91974c069382b0dfa47b2da7e28bd061c8331 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width