zionhigt / android-python27

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

test.py from python_scripts_r13 does not run #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Place python_scripts_r13 contents into res/raw/my_python_project.zip
2.Rename test.py to overwrite hello.py
3.Install and attempt to run

What is the expected output? What do you see instead?
The full test sequence should begin, instead it fails silently with the 
following logcat output http://pastebin.com/C80tUMA3

What version of the product are you using? On what operating system?
Revision a7101e615939 (latest at the moment)

Please provide any additional information below.

Original issue reported on code.google.com by paulmdem...@gmail.com on 15 Jun 2012 at 11:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is expected, those scripts were build to work against Python 2.6 provided 
by PY4A. You need either to use Python 2.6 from PY4A in the APK, see how to 
switch: 
https://code.google.com/p/android-python27/wiki/TutorialHowToChangePythonBuilds

Or to add missing modules (like BeautifulSoup) to Python 2.7 (note .pyc file 
works only against the Python version they were compiled with (2.6, 2.7...), so 
you can't just copy the one from Python 2.6 to Python 2.7, you need to 
recompile them).

Original comment by anthony....@gmail.com on 15 Jun 2012 at 11:37