ringgono / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

Not working Python scripts #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 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 16 Apr 2013 at 10:05

GoogleCodeExporter commented 8 years ago
we came across the same problem now, and don't know how to fix.

Original comment by liang...@gmail.com on 8 May 2014 at 5:50