-
Notifications
You must be signed in to change notification settings - Fork 165
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
The aiohttp change with storage/dav/http #916
Comments
The system has no IPv6 support configured, but the kernel does know what IPv6 is. |
Should definitely work on Python 3.8. What distribution are you using? |
I use Linux from Scratch. With this change to aiohttp in the 3.8 branch diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py
index 2161c8fa..d20bf818 100644
--- a/aiohttp/resolver.py
+++ b/aiohttp/resolver.py
@@ -38,6 +38,7 @@ class ThreadedResolver(AbstractResolver):
hosts = []
for family, _, proto, _, address in infos:
+ print(family, address)
if family == socket.AF_INET6 and address[3]: # type: ignore[misc]
# This is essential for link-local IPv6 addresses.
# LL IPv6 is a VERY rare case. Strictly speaking, we should use vdirsyncer prints:
address[3] does not exist. |
I fixed aiohttp with diff --git a/aiohttp/resolver.py b/aiohttp/resolver.py
index 2161c8fa..4e57b319 100644
--- a/aiohttp/resolver.py
+++ b/aiohttp/resolver.py
@@ -38,16 +38,7 @@ class ThreadedResolver(AbstractResolver):
hosts = []
for family, _, proto, _, address in infos:
- if family == socket.AF_INET6 and address[3]: # type: ignore[misc]
- # This is essential for link-local IPv6 addresses.
- # LL IPv6 is a VERY rare case. Strictly speaking, we should use
- # getnameinfo() unconditionally, but performance makes sense.
- host, _port = socket.getnameinfo(
- address, socket.NI_NUMERICHOST | socket.NI_NUMERICSERV
- )
- port = int(_port)
- else:
- host, port = address[:2]
+ host, port = address[:2]
hosts.append(
{
"hostname": hostname, |
See also aio-libs/aiohttp#5901. |
Looks like a bug in When a release with a fix comes out, I'll pin that as a minimal version. |
Current upstream: aio-libs/aiohttp#5156 |
aiohttp 3.8.0 remedies the problem. |
With python 3.8.8+ and
aiohttp 3.7.4.post0
aiostream 0.4.3
I install vdirsyncer, version 0.18.1.dev44+g98fcd12. With this config file:
I call:
However, if I try the same on a different computer with python 3.9.6, again with
There is no such error, with the same vdirsyncer code (0.18.1.dev44+g98fcd12).
My understanding is, that vdirsyncer is supposed to work under python 3.8.
The text was updated successfully, but these errors were encountered: