dya2 / android-scripting

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

Python interpreter doesn't work on Sony Ericsson Xperia X10 #307

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Install ASE.
2. Add Python 2.6.2 interpreter.
3. Start the interpreter. (manually from shell or by selecting from the
interpreters' list in ASE)

What is the expected output? What do you see instead?

Expected would be a working Python shell. Instead I get the following error
message:
reloc_library[1173]: 4241 cannot locate '__aeabi_dcmpun'...CANNOT LINK
EXECUTABLE

What version of the product are you using? On what operating system?

ASE r21 on Android 1.6.

Please provide any additional information below.

The handset is a Sony Ericsson Xperia X10i.
Baseband version: 1.0.14.
Kernel version: 2.6.29-rel semc-android@SEMC #2.
Build number: R1FA014.

I attached the logcat output.
Also note that I am getting the same error message when trying to start a
Perl shell or script.

Original issue reported on code.google.com by NeveMa...@gmail.com on 23 Apr 2010 at 7:17

Attachments:

GoogleCodeExporter commented 9 years ago
Hi - I get the same error as described. Bean shell seems to work OK for me...

Original comment by markrand...@gmail.com on 28 Apr 2010 at 9:58

GoogleCodeExporter commented 9 years ago
ASE uses unsupported native libraries to work. So, it's not entirely surprising 
that 
there's a device on which it doesn't work. However, any languages that are not 
cross 
compiled (Rhino, JRuby, and BeanShell) should work. In addition, Lua will 
probably 
also work.

I can't reproduce the issue though since I don't have access to that device. 
Since 
two of you have reported it, I'll mark it as accepted. However, It's not likely 
something that I'll be able to address. Perhaps it will resolve itself in a 
future 
firmware release for your device.

Original comment by damonkoh...@gmail.com on 29 Apr 2010 at 3:09

GoogleCodeExporter commented 9 years ago
I have found same error on same device model and can confirm that Lua works.  
Maybe we can persuade SonyEricsson to loan you the device? I'd really like 
Python to
be running on this soon.  

Original comment by VictorLu...@googlemail.com on 14 May 2010 at 12:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also have this same problem

This issue maybe related to the fact the the Sony Xperia X10 is the only Android
phone that I know of that has neither a dpad or a track ball. The library 
needed to
access these devices my noy even be present on the phone.

Original comment by ron.c...@gmail.com on 18 May 2010 at 11:33

GoogleCodeExporter commented 9 years ago
I have exactly the same issue on Acer Liquid terminal (with Android 1.6 Donut).
Is there a way to make python work on liquid? It was one of the main reasons 
for me
to buy an android phone...
It's already two of the most popular devices that can't run the python 
interpreter,
is ASE supported only on HTC hardware?

Original comment by hva.fran...@gmail.com on 3 Jun 2010 at 10:25

GoogleCodeExporter commented 9 years ago
@hva.francesco It's not a hardware problem actually. You'll probably find that 
Lua 
works. The Python compilation uses lots of unsupported, native libraries. 
Apparently, 
the distribution of Android on the Acer Liquid doesn't contain all of the 
necessary 
libraries. If possible, you might try installing Cyanogen and running ASE on 
that.

Original comment by damonkoh...@gmail.com on 3 Jun 2010 at 10:33

GoogleCodeExporter commented 9 years ago
I'm not sure Cyanogen can go on the Liquid... I have the bad impression your 
rojectis
a bit too much HTC.
In my opinion a good goal for your project would be to make ASE scripting work 
out of
the box in the most popular android devices, even with cross-compiled languages.
otherwise it sounds pretty useless and I don't really understand what this 
project is
about.
this issue is already been reported on two of the most widespread android 
terminals,
and it would be nice to have a little bit more of analsys about it: e.g. which
libraries are missing? any possible way of overriding the problem?

Original comment by hva.fran...@gmail.com on 5 Jun 2010 at 3:48

GoogleCodeExporter commented 9 years ago
@hva.ancesco I will reiterate that this is not a hardware related issue. ASE 
works on 
platforms other than HTC (for instance, the Motorola Droid). It is not feasible 
for us 
to test ASE on all available Android devices or ROMS. We'll do what we can, 
though.

Original comment by damonkoh...@gmail.com on 5 Jun 2010 at 8:09

GoogleCodeExporter commented 9 years ago
Can confirm that Damons' assumption on Lua working on the X10 is correct :D
All others seem to fail though...

Original comment by mark.seg...@gmail.com on 20 Jun 2010 at 7:13

GoogleCodeExporter commented 9 years ago
@mark.segunda Do all others fail? Or just Python and Perl? Things like 
BeanShell, Rhino, JRuby, etc. that are all written in Java should work as well.

Original comment by damonkoh...@gmail.com on 21 Jun 2010 at 7:08

GoogleCodeExporter commented 9 years ago
On the Dell Streak (Android 1.6, ASE r25), only Shell and Lua are usable.

Python, Perl and Tcl give the 'cannot link executable' error described above. 
Beanshell, JRuby and Rhino won't install; they give an 'installation failed' 
error.

It looks like __aeabi_dcmpun is part of the standard GCC ABI; might it be 
obtainable from somewhere else, e.g. the NDK?

Original comment by jpbent...@gmail.com on 7 Jul 2010 at 9:59

GoogleCodeExporter commented 9 years ago
A phpforandroid user has reported a similar problem, I know we're using an 
unofficial ASE but just in case this might help:

msg:

dont work:
cannot locate '__aeabi_fdiv'...CANNOT LINK EXECUTABLE

Error happens when i launch any script from examples. Phone is LG Swift(GT 540).
Console output:
$ export AP_PORT="38994"
export TEMP="/sdcard/ase/extras/php/tmp"
export PHPHOME="/data/data/com.irontec.phpforandroid/php"
$ $ $ export PHPPATH="/sdcard/ase/extras/php"
$ /data/data/com.irontec.phpforandroid/php/bin/php -c $PHPPATH 
/sdcard/ase/scripts/list_items.php
reloc_library[1172]: 1759 cannot locate '__aeabi_fdiv'...CANNOT LINK EXECUTABLE
$

===============

According to the inet reviews this device uses Android 1.6, just a coincidence?

Do you have any clue about what might be hapenning? Seems like a bionic related 
problem to me. I'm thinking in providing the user a link to our phpforandroid 
pre-release which used a fat glibc static binary. 

Thanks in advance

Original comment by ktulur on 14 Jul 2010 at 6:48

GoogleCodeExporter commented 9 years ago
For the record: Optimus Boston (also known as Orange Boston and others) have 
the same problem, including what's said in comment #12:

Lua - works
Perl - doesn't work
Python - doesn't work
Shell - works
BeanShell - doesn't install 
JRuby - doesn't install
Rhino - doesn't install
TCL - doesn't work

Original comment by marcos.m...@optimus.pt on 15 Jul 2010 at 6:33

GoogleCodeExporter commented 9 years ago
I am having the same problems with the Xperia x10a, it would be really really 
REALLY useful for me to test python scripts, as I am trying to learn the 
language at the moment. I'm posting a link to this on an XDA thread for the 
purpose of some of the specific Xperia developers to maybe find out what 
__aeabi_dcmpun is.

Original comment by TheGames...@gmail.com on 16 Jul 2010 at 8:47

GoogleCodeExporter commented 9 years ago
ASE r26
http://phpforandroid.net/files/ASEr26unofficial.apk
Phpforandroid (don't work with ASE r25)
http://phpforandroid.net/files/PhpForAndroid_r1.apk

Php - Doesn't work on the X10 rooted :'(

Original comment by kamikaze...@gmail.com on 18 Jul 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Looking at Android's code, this function doesn't exist on donut, only on 
eclair. Since ASE doesn't seem to be using it, maybe this issue happens becaise 
ASE is being built against eclair's NDK, and building it against donut's NDK is 
enough to fix it?

Original comment by marcos.m...@optimus.pt on 22 Jul 2010 at 2:29

GoogleCodeExporter commented 9 years ago
@marcos Interesting thought. I don't have the hardware to test this theory, but 
I'd be willing to do a recompile against Cupcake/Donut and see if it solves the 
problem. I'm skeptical though because Python does work on Donut with the G1.

Original comment by damonkoh...@gmail.com on 25 Jul 2010 at 6:50

GoogleCodeExporter commented 9 years ago
I would be more than happy to test a  Donut build on my x10

Ron

Original comment by ron.c...@gmail.com on 11 Aug 2010 at 1:18

GoogleCodeExporter commented 9 years ago
i have the same problem with Optimus Boston but the reloc_library is: [1172]: 
3995

SL4A.
Python 2.6.2 interpreter.
Baseband version: PR3_900
Android 1.6
kernel 2.6.29
Build number 4014_1_38E

reloc_library[1172]: 3995 cannot locate '__aeabi_dcmpun'...CANNOT LINK
EXECUTABLE

Original comment by marcopre...@hotmail.com on 17 Aug 2010 at 2:15

GoogleCodeExporter commented 9 years ago
I have an Orange Boston too and python doesn't work; hello_world.py 
started-->hello_world.py exited and that's all, I don't see the reloc error but 
there is an error in the logcat: 

default buffer size used in BufferedReader constructor. It would be better to 
be explicit if an 8k-char buffer is required

is it a problem of the phone or android version?? It's a pity cannot run python

Thanks anyway for constructing it

Original comment by adalvarf...@gmail.com on 9 Sep 2010 at 7:59

GoogleCodeExporter commented 9 years ago
I also try beanshell and it works, I think that python doesn't work because of 
the shell, I can't access the virtual keyboard and if I put the beanshell's 
script as a widget at home it doesn't work

I think that the problem could probably be about the smartphone, because I try 
sl4a in an emulator of Android 1.6 and it works perfectly

I attach null.log

Original comment by adalvarf...@gmail.com on 11 Sep 2010 at 12:40

Attachments:

GoogleCodeExporter commented 9 years ago
Same problem, LG GT540 Optimus, Android 1.6

shell works though.

Thank you

Original comment by garethpu...@googlemail.com on 26 Sep 2010 at 10:04

GoogleCodeExporter commented 9 years ago
There's been quite a bit of work done to the python implementation lately.
See: http://code.google.com/p/python-for-android/

Can we confirm that the problem is still occurring?

Original comment by rjmatthews62 on 19 Feb 2011 at 2:40

GoogleCodeExporter commented 9 years ago
The problem has been resolved for most users through an update of the phone to 
Android OS 2.1. I can confirm that it is now working for me. 

Original comment by TrisRi...@gmail.com on 4 Mar 2011 at 5:49

GoogleCodeExporter commented 9 years ago
I am having problem ruuning python script on asl4 installed on acer betouch 
110E with android 1.5 cupcake OS where as all other scripts perl, beanshell,lua 
works excellently on the phone but python script not even hello world script do 
not work
it is pity that such great gaints python and android do not go togather and why 
nobody knows I feel

Original comment by rao...@gmail.com on 5 Oct 2011 at 9:10

GoogleCodeExporter commented 9 years ago
On my pandigital novel tablet Android 1.5 
I can run Perl and Javascript 
but not Python.
I have not tested the others yet.
Python would be very useful because of the interactive shell. Perl is fine for 
me but I have noticed that the Perl SL4A tutorial at 
http://l00g33k.wikispaces.com/Android+Scripting+Environment
still used the depreciated startSensing()
It would be nice if there were more working Perl examples especially if Python 
is not working on all devices still.

Original comment by peirce....@gmail.com on 23 Feb 2012 at 9:15