damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 803 forks source link

IPv6 disabled in Python build #160

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:29

What device(s) are you experiencing the problem on?
HTC Desire HD

What firmware version are you running on the device?
Android 2.2

What steps will reproduce the problem?
1. Create the following Python script:
import socket
print socket.has_ipv6
s = socket.socket(socket.AF_INET6, socket. SOCK_DGRAM)
s.bind(("::1", 9000))
s.recv(1024)

What is the expected output?
True
[Wait for incoming connection]

What do you see instead?
False
Exception: socket.error: getsockaddrarg: bad family

What version of the product are you using? On what operating system?
SL4A r3 + Python 2.6.2

Please provide any additional information below.
Python seems to be compiled without --enable-ipv6. Please enable it in the 
build.

Thanks

Original issue reported on code.google.com by marku...@gmail.com on 17 Mar 2011 at 3:49

Copied from original issue: damonkohler/android-scripting#531

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:29

Python development has moved to http://code.google.com/p/python-for-android/

Please post this issue there.

Also, you probably aren't using the latest Python build, also on that site. 
Please check that problem persists with latest build.

Original comment by rjmatthews62 on 17 Mar 2011 at 10:37