What device(s) are you experiencing the problem on? Amoi N821
What firmware version are you running on the device? Android 4.1.1
What steps will reproduce the problem?
- Create the following Python script:
import android droid = android.Android() droid.makeToast('Hello, Android!') print 'Hello world!'
- Run script
What is the expected output? must print 'Hello world!' & make popup 'Hello Android!'
What do you see instead? see this error:
dlopen libpython2.6.so
Traceback (most recent call list):
File "/storage/sdcard0/sl4a/scripts/hello_world.py", line 2, in
droid = droid.Android()
File "/storage/sdcard0/sl4a/scripts/android.py", line 34, in Init
self.conn = socket.create_connection(addr)
File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/socket.py", line 498, in create_connection
socket.gaierror: [Errno 7] no address associated with hostname.
.
.
Please provide any additional information below. My friend has the same phone and the same problem.
How can I fix it?