MattsFleaMarket / python-for-android

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

Install Failed on HTC Desire HD #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install SL4A
2. Install
3. PythonForAndroid_r(5 or 6).
4. Try to install.

What is the expected output? What do you see instead?
The files are downloading. But after that I get an "Installation Failed" and 
SL4A don't see Python.

What version of the product are you using? On what operating system?
HTC Desire HD. Android 2.2

Please provide any additional information below.
Attached adb output after few tries

Original issue reported on code.google.com by utde...@gmail.com on 29 Mar 2011 at 6:08

Attachments:

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Hi,

Same problem with ADT for Android2.2 emulator.

Original comment by josh...@gmail.com on 7 Mar 2012 at 3:48

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Same problem here. But, it works with PythonForAndroid-r7b1.apk.

Original comment by ab.drd...@gmail.com on 25 May 2012 at 11:47