Skip to content

Missing IPv6 support in QPython3 #195

Open
@whansmann

Description

@whansmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions