Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing python script in android terminal emulator

I installed python 2.7 in my Android device and I tried executing a python script by typing the command in terminal emulator. The problem is that although I use the full path for python the following error appears:

link_image[1997]: failed to link ./python CANNOT LINK EXECUTABLE.

I tried to add environment variables in ./~bashrc but I didn't make it. Any idea ?

like image 368
user2796429 Avatar asked Sep 19 '13 17:09

user2796429


1 Answers

OK it is solved. I followed these steps (http://code.google.com/p/python-for-android/wiki/RunPythonFromShell) but first I had to put the file standalone_python.sh in /data/ because in sdcard I had no permission to execute. And finally using 'su' I made it to run my script as root.

like image 85
user2796429 Avatar answered Nov 15 '22 13:11

user2796429