qpython-android / qpython.org

QPython contributor & sugguestion & question homepage
http://qpython.org
58 stars 11 forks source link

Missing IPv6 support in QPython3 #195

Open whansmann opened 5 years ago

whansmann commented 5 years ago

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

jsmith716 commented 4 years ago

I'm having the same problem.

Any chance IPv6 support can be added?