HellerCommaA / android-scripting

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

standalone_python.sh doesn't recognize the android module #707

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
Samsung Galaxy S3 - Terminal Emulator

What firmware version are you running on the device?
Cyanogenmod 10.2.1-d2vzw

What steps will reproduce the problem?
1. Create .py script, either with a text editor or with SL4A, which uses the 
android module (to do something like makeToast)
2. Place the .py script in the same directory as standalone_python.sh
3. Run the following command: sh standalone_python.sh hello.py

What is the expected output? What do you see instead?
Expected: Android should makeToast (popup notification) saying "hello"
Instead: I receive the following error:
'import site' failed; use -v for traceback
Traceback (most recent call last):
   File "hello.py", line 1, in <module>
       import android
ImportError: No module named android

What version of the product are you using? On what operating system?
"sh standalone_python.sh --version" reports Python 2.6.2

Please provide any additional information below.

Original issue reported on code.google.com by blackpea...@gmail.com on 30 Apr 2014 at 5:31