[Mobile-sig] Android-Built Python Cannot Load lib-dynload Modules

Cyd Haselton chaselton at gmail.com
Mon Feb 9 23:59:06 CET 2015



On February 9, 2015 4:44:56 PM CST, Cyd Haselton <chaselton at gmail.com> wrote:
>
>
>On February 9, 2015 4:29:22 PM CST, David Boddie <david at boddie.org.uk>
>wrote:
>>On Monday 9. February 2015, Cyd Haselton wrote:
>>> On February 9, 2015 4:10:00 PM CST, David Boddie
>><david at boddie.org.uk> 
>>wrote:
>>
>>> >It sounds trivial, but are they actually built for the correct
>>> >architecture?
>>> >
>>> >On a desktop Linux system you could run "file" on the binary to get
>>> >some idea
>>> >of what the .so files are. I'm not sure what you can run in the
>>> >environment
>>> >you are using.
>>> 
>>> They are.  Here's the output for file
>>> 
>>> 
>>> /bld/python/Python-3.4.2 $ file
>>> /usr/python/lib/python3.4/lib-dynload/time.cpython-34m.so
>>> /usr/python/lib/python3.4/lib-dynload/time.cpython-34m.so: ELF
>32-bit
>>LSB
>>> shared object, ARM, version 1 (SYSV), dynamically linked, not
>>stripped
>>
>>The next thing I'd try is to use ctypes to try and load it, but that
>>won't
>>help if you can't import ctypes. Do you have an ldd tool you can run
>on
>>it?
>>
>
>Interesting...when I attempt to import ctypes I get this:
>
>>>> import ctypes
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/python/lib/python3.4/ctypes/__init__.py", line 12
>    return 0L
>            ^
>SyntaxError: invalid syntax
>
>That line is part of a patch I applied while troubleshooting a previous
>error.  I'll commemt it out, see if that helps

Well...not so much. I get a the original error, only for _ctypes.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


More information about the Mobile-sig mailing list