kazimolmez / python-for-android

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

libpython2.6.so not found #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Py4A.
2. Install the interpreter.
3. Launch the interactive interpreter from the SL4A list.

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

Expected: interpreter console prompt
Actual: "Python started" notification, followed immediately by "Python exited" 
notification.
  logcat shows return code 255.

What version of the product are you using? On what operating system?
r4 or r5, on Android 1.5

Please provide any additional information below.

Copying libpython2.6.so to /system/lib resolves the issue.
Possible reason: LD_LIBRARY_PATH only contains /system/lib.

On Py4A version r1, the interpreter works fine without copying libpython2.6.so 
to /system/lib, but the same issue occurs when attempting to install a Python/C 
module like pybluez; there, "import bluetooth" fails with a link error saying 
that libpython2.6.so cannot be found.  I haven't tested whether copying 
libpython2.6.so to /system/lib fixes this problem with r1, since doing it with 
r4 solved both problems for me.

Original issue reported on code.google.com by brett.hi...@gmail.com on 10 Mar 2011 at 1:27

GoogleCodeExporter commented 8 years ago
This does not appear to be a problem with later versions of Android (1.6 or 
greater)

I would not be surpised to find there were issues with bluetooth in 1.5, 
because the sl4a bluetooth libs are only available for sdk level 7 and about 
(2.1 from memory)

It would be pretty easy to add to the LD_LIBRARY_PATH if you can confirm this 
is the issue.

However, I know sl4a will not be making strenuous efforts to stay backwards 
compatible with 1.5 from now on... unless someone else wants to make the effort 
to keep it so.

Original comment by rjmatthews62 on 20 Mar 2011 at 7:17

GoogleCodeExporter commented 8 years ago
Why don't you install the python standalone package???

Original comment by tony537...@gmail.com on 7 Jul 2011 at 2:02

GoogleCodeExporter commented 8 years ago
That would be step "2. Install the interpreter."

At any rate, I can confirm that this isn't an issue with 2.3.4, so I'm not 
looking back.  Feel free to close this.

Original comment by brett.hi...@gmail.com on 7 Jul 2011 at 2:13

GoogleCodeExporter commented 8 years ago

Original comment by rjmatthews62 on 3 Apr 2012 at 2:02