Open GoogleCodeExporter opened 8 years ago
I can see the problem in the log, just not what is causing it.
Python looks in LATEST_VERSION_SCRIPTS to see what is the latest scripts
version to download.
Except that in your phone, this file is:
LATEST_VERSION_SCRİPTS
There's a tiny dot on the I in scripts, meaning it's not a latin 'I', so it
can't find it.
I can't duplicate the problem on my HTC Desire (not HD). I suspect there is
something about your code table or language.
FYI, the code to pull the scripts is here:
__resolve_version("_scripts");
private int __resolve_version(String what) {
url = new URL(BASE_URL + "hg/python-build/LATEST_VERSION" + what.toUpperCase());
So it implies that the toUpperCase() is messing with the "i".
Anyway, this is not a big issue in any case, for two reasons:
1) The scripts are just a set of sample scripts. The rest of python should be
installed correctly, and you can confirm by going to sl4a and attempting to add
a Python script. You can manually download python_scripts_r13.zip to and unpack
into /sdcard/sl4a/scripts
2) In any case, having failed to determine the scripts version, it is now
trying to download python_scripts_r-1.zip. That file now exists as a copy of
r13.
Trying again should resolve the problem.
Let me know how it goes.
Original comment by rjmatthews62
on 29 Mar 2011 at 10:12
Thanks for your answer. I copied the contents of zip file to the location you
said, and saw that scripts in SL4A. But I couldn't run any of them. It says:
"Unable to run [script location] null". In "Python for Android" app, it says
"Installed Versions, interpreter: 16, extras: 13, scripts: ND". But I can't run
scripts and I don't see "Python" in interpreters list of SL4A(There is only
shell.).
Original comment by utde...@gmail.com
on 30 Mar 2011 at 3:33
Hi, exactly same issue here on Samsung Galaxy S (Android v 2.2). Installation
fails when installing scripts and SL4A does not show Python on interpreters
list.
Original comment by zaytz...@gmail.com
on 9 Apr 2011 at 8:29
Hi,
Same problem with ADT for Android2.2 emulator.
Original comment by josh...@gmail.com
on 7 Mar 2012 at 3:48
This is most likely to be incomplete installation of Python.
Once the python apk is installed, it still has to find and download supporting
files.
Original comment by rjmatthews62
on 3 Apr 2012 at 2:05
Same problem here. But, it works with PythonForAndroid-r7b1.apk.
Original comment by ab.drd...@gmail.com
on 25 May 2012 at 11:47
Original issue reported on code.google.com by
utde...@gmail.com
on 29 Mar 2011 at 6:08Attachments: