Skip to content
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

Missing IPv6 support in QPython3 #195

Open
whansmann opened this issue Aug 17, 2018 · 1 comment
Open

Missing IPv6 support in QPython3 #195

whansmann opened this issue Aug 17, 2018 · 1 comment

Comments

@whansmann
Copy link

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
Copy link

I'm having the same problem.

Any chance IPv6 support can be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants