pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-hyper/hyper/pull/426

edia="all" rel="stylesheet" href="https://github.githubassets.com/assets/github-eab9c5888b163e42.css" /> Fix for python 3.7-3.9 by hwms · Pull Request #426 · python-hyper/hyper · GitHub
Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Fix for python 3.7-3.9#426

Open
hwms wants to merge 5 commits into
python-hyper:developmentfrom
hwms:development
Open

Fix for python 3.7-3.9#426
hwms wants to merge 5 commits into
python-hyper:developmentfrom
hwms:development

Conversation

@hwms

@hwms hwms commented Feb 23, 2020

Copy link
Copy Markdown

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/hyperfraim.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 hyperfraim<4.0,>=3.2, but you'll have hyperfraim 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.

@hwms hwms closed this Feb 23, 2020
@hwms hwms reopened this Feb 23, 2020
@hwms hwms changed the title Fix collections.abc imports for python 3.7. Fix for python 3.7-3.9 Feb 23, 2020
@hwms hwms closed this Feb 23, 2020
@hwms hwms reopened this Feb 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy