Skip to content
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

Fix error import #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix error import #20

wants to merge 2 commits into from

Conversation

URenko
Copy link

@URenko URenko commented Jan 28, 2019

from . import async_task in #19 is needless and will cause error
ImportError: cannot import name 'async_task' from 'aioh2'

@fantix
Copy link
Member

fantix commented Jan 28, 2019

async_task is actually in use at line 383?

@URenko
Copy link
Author

URenko commented Jan 28, 2019

I moved async_task to protocol.py as it is only used there.
Otherwise, it is troublesome to deal with the loop import.

Copy link
Member

@fantix fantix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the PR! But I don't have time to test this right now, if it works then I'm happy to merge it.

@bcopeland
Copy link

+1 this pair of changes fixed the same import error for me which I ran into on py3.7.

@chantra
Copy link
Contributor

chantra commented Jan 6, 2021

@fantix would you mind porting @URenko 's patch to aioh2 and make a new release? aioh2 is currently unusable with any recent python3 versions and people are struggling with dependencies.

Patches available from https://github.com/URenko/aioh2

URenko@8c1b5ab
and
URenko@933e515

which are essentially this diff.

Example issues on the dohproxy side:
facebookarchive/doh-proxy#63
facebookarchive/doh-proxy#73
facebookarchive/doh-proxy#93

Landing this diff and making a new release would also close #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants