gladiopeace / android-scripting

Automatically exported from code.google.com/p/android-scripting
1 stars 0 forks source link

Python scripts not work #684

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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?
1. Create the following Python script:
import android
droid = android.Android()
droid.makeToast('Hello, Android!')
print 'Hello world!'
2. 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 <module>
    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.

What version of the product are you using? On what operating system?
sl4a_r6 and PythonForAndroid_r5

Please provide any additional information below.
My friend has the same phone and the same problem.

How can I fix it?

Original issue reported on code.google.com by klimenko...@gmail.com on 27 Apr 2013 at 12:06