Missing IPv6 support in QPython3

28 views
Skip to first unread message

wolfgang...@googlemail.com

unread,
Aug 17, 2018, 9:10:34 AM8/17/18
to QPython


Hi,

we are operating a growing set of smart phones that perform automated download and upload performance measurements in a mobile cellular network. Many of the test cases are Python-based and executed with QPython3. Recently we've discovered that QPython3 does not seem to support IPv6.

The following code ...

import socket
s
= socket.socket(socket.AF_INET6, socket.SOCK_STREAM, 0)
s
.connect(("www.example.com", 80))

runs into this error:

Traceback (most recent call last):
 
File "/sdcard/xxx.py", line 3, in <module>
    s
.connect(("www.example.com", 80))
socket
.error: getsockaddrarg: bad family


Apparently, Python was compiled with option --disable_ipv6.

If there would be a chance to provide an update to QPython3 that supports IPv6? I'd be so grateful and happy.

Best regards
Wolfgang
Reply all
Reply to author
Forward
0 new messages