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: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a50bc3cc-4f19-2603-d4b1-22ba309f38fa |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 83F6:F5661:260108E:33856F8:696AD77C |
| html-safe-nonce | 06a26d82ceaa2e6e032c1b65f40e39474fd575783594436d5a2db9a24e882246 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0Y2OkY1NjYxOjI2MDEwOEU6MzM4NTZGODo2OTZBRDc3QyIsInZpc2l0b3JfaWQiOiIxMDA5MTAyNjIzNzk4Mzg0NTA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c8c29671915f3feed143105c867ae9f4fc233ef67ee90dae58046ae6695ee0b0 |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 524a93f2c1f36522a3b4be4c110467ee4172245d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width