Python 3.7 support?
publicarray opened this issue · 4 comments
publicarray commented
~ ❯ python3 --version
Python 3.7.3
~ ❯ doh-client --domain doh.seby.io --port 8443 --qname example.com --qtype A
Traceback (most recent call last):
File "/usr/local/bin/doh-client", line 6, in <module>
from dohproxy.client import main
File "/usr/local/lib/python3.7/site-packages/dohproxy/client.py", line 12, in <module>
from dohproxy import client_protocol, utils
File "/usr/local/lib/python3.7/site-packages/dohproxy/client_protocol.py", line 10, in <module>
import aioh2
File "/usr/local/lib/python3.7/site-packages/aioh2/__init__.py", line 2, in <module>
from .helper import *
File "/usr/local/lib/python3.7/site-packages/aioh2/helper.py", line 89
async_task = asyncio.async
^
SyntaxError: invalid syntax
A quick search brought me here: pymodbus-dev/pymodbus#319
chantra commented
This exception is raised from within aioh2. It seems to be fixed upstream
but no new package was pushed:
decentfox/aioh2@e810513
Can you install aioh2 from master?
chantra commented
@publicarray I will close this under the assumption that this is fixed when using aioh2 master branch. If this is the case, you may want to ping them to cut a new release.
chantra commented
For anyone having this issue, I believe:
pip install git+https://github.com/decentfox/aioh2.git
should help installing off master and supposedly fix this issue.
laggardkernel commented
Fix this problem from a fork repo,
pip install --force-reinstall git+https://github.com/URenko/aioh2.git
@chantra Nope. Still not fixed. Broken on Python 3.7.
❯ doh-client --version
Traceback (most recent call last):
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/bin/doh-client", line 11, in <module>
load_entry_point('doh-proxy==0.0.9', 'console_scripts', 'doh-client')()
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2854, in load_entry_point
return ep.load()
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2445, in load
return self.resolve()
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2451, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/dohproxy/client.py", line 12, in <module>
from dohproxy import client_protocol, utils
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/dohproxy/client_protocol.py", line 10, in <module>
import aioh2
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/aioh2/__init__.py", line 2, in <module>
from .helper import *
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/aioh2/helper.py", line 5, in <module>
from .protocol import H2Protocol
File "/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/aioh2/protocol.py", line 13, in <module>
from . import exceptions, async_task
ImportError: cannot import name 'async_task' from 'aioh2' (/usr/local/Cellar/doh-proxy/0.0.9/libexec/lib/python3.7/site-packages/aioh2/__init__.py)
aioh2 is dead, not any new release yet. The last commit is in 2018.