python numpy compiles but will not run -- old_toolchain

58 views
Skip to first unread message

David Liebman

unread,
Oct 31, 2015, 11:51:59 AM10/31/15
to Python For Android
HI,

I developed an app with the old toolchain for python-for-android and got it to work, depending on kivy,pyjnius, and numpy. This was just before the revamp. Now I am returning to the project and trying to get the project to work again. I am using the old_toolchain branch as I said. Numpy compiles(!) but does not actually work when it is imported by the code of the project.

I can run the kivy part of the code on my desktop environment. I am using a virtualbox 32 bit environment and ubuntu 14.04 so that I can more easily control the packages that are installed. At the moment I cannot get the revamp to work. (Isn't that pathetic?) I am stuck working on the old_toolchain branch. numpy does not work. I believe that the version being downloaded is 1.9.2.

Does anyone else have this sort of problem?

Alexander Taylor

unread,
Oct 31, 2015, 9:28:29 PM10/31/15
to Python For Android
What is the nature of the failure, such as the output of logcat when the app is run?

David Liebman

unread,
Nov 1, 2015, 7:57:09 AM11/1/15
to Python For Android
This is the logcat output for the app. Below the logcat output is the contents of the kivy log file. This is when the filter is set for 'davidliebman':

11-01 07:34:51.999: V/ApplicationPolicy(899): isApplicationStateBlocked userId 0 pkgname org.davidliebman.android.cnn
11-01 07:34:52.139: E/TopActivity(21963): -org.davidliebman.android.cnn
11-01 07:34:52.159: D/AutostartService(2417): set fg pkgname:org.davidliebman.android.cnn
11-01 07:34:52.219: V/SmartFaceService - 3rd party pause(899): onReceive [android.intent.action.ACTIVITY_STATE/org.davidliebman.android.cnn/create]
11-01 07:34:52.279: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl.so 0x426a8c38
11-01 07:34:52.279: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl.so 0x426a8c38
11-01 07:34:52.279: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_image.so 0x426a8c38
11-01 07:34:52.279: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_image.so 0x426a8c38
11-01 07:34:52.279: D/dalvikvm(31779): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.cnn-49/libsdl_image.so 0x426a8c38, skipping init
11-01 07:34:52.279: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_ttf.so 0x426a8c38
11-01 07:34:52.279: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_ttf.so 0x426a8c38
11-01 07:34:52.279: D/dalvikvm(31779): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.cnn-49/libsdl_ttf.so 0x426a8c38, skipping init
11-01 07:34:52.279: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_mixer.so 0x426a8c38
11-01 07:34:52.289: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_mixer.so 0x426a8c38
11-01 07:34:52.289: D/dalvikvm(31779): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.cnn-49/libsdl_mixer.so 0x426a8c38, skipping init
11-01 07:34:52.289: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libpython2.7.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libpython2.7.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.cnn-49/libpython2.7.so 0x426a8c38, skipping init
11-01 07:34:52.299: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libapplication.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libapplication.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.cnn-49/libapplication.so 0x426a8c38, skipping init
11-01 07:34:52.299: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_main.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libsdl_main.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.cnn-49/libsdl_main.so 0x426a8c38, skipping init
11-01 07:34:52.299: D/dalvikvm(31779): Trying to load lib /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_io.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): Added shared lib /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_io.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): No JNI_OnLoad found in /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_io.so 0x426a8c38, skipping init
11-01 07:34:52.299: D/dalvikvm(31779): Trying to load lib /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/unicodedata.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): Added shared lib /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/unicodedata.so 0x426a8c38
11-01 07:34:52.299: D/dalvikvm(31779): No JNI_OnLoad found in /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/unicodedata.so 0x426a8c38, skipping init
11-01 07:34:52.309: D/dalvikvm(31779): Trying to load lib /data/app-lib/org.davidliebman.android.cnn-49/libsqlite3.so 0x426a8c38
11-01 07:34:52.309: D/dalvikvm(31779): Added shared lib /data/app-lib/org.davidliebman.android.cnn-49/libsqlite3.so 0x426a8c38
11-01 07:34:52.309: D/dalvikvm(31779): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.cnn-49/libsqlite3.so 0x426a8c38, skipping init
11-01 07:34:52.309: D/dalvikvm(31779): Trying to load lib /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_sqlite3.so 0x426a8c38
11-01 07:34:52.309: E/dalvikvm(31779): dlopen("/data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_sqlite3.so") failed: dlopen failed: library "/data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_sqlite3.so" not found
11-01 07:34:52.309: D/dalvikvm(31779): Trying to load lib /data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_imaging.so 0x426a8c38
11-01 07:34:52.309: E/dalvikvm(31779): dlopen("/data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_imaging.so") failed: dlopen failed: library "/data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload/_imaging.so" not found
11-01 07:34:52.539: I/python(31779): ['/data/data/org.davidliebman.android.cnn/files/lib/python2.7/site-packages', '/data/data/org.davidliebman.android.cnn/files/lib/site-python']
11-01 07:34:52.539: I/python(31779): Android path ['/data/data/org.davidliebman.android.cnn/files/lib/python27.zip', '/data/data/org.davidliebman.android.cnn/files/lib/python2.7', '/data/data/org.davidliebman.android.cnn/files/lib/python2.7/lib-dynload', '/data/data/org.davidliebman.android.cnn/files/lib/python2.7/site-packages', '/storage/emulated/0/org.davidliebman.android.cnn', '/storage/emulated/0/org.davidliebman.android.cnn/_applibs']
11-01 07:34:52.739: I/python(31779): [INFO              ] [Logger      ] Record log in /storage/emulated/0/org.davidliebman.android.cnn/.kivy/logs/kivy_15-11-01_1.txt
11-01 07:34:52.919: I/ActivityManager(899): Process org.davidliebman.android.cnn:python (pid 31779) (adj 0) has died.
11-01 07:34:52.919: W/ActivityManager(899): Force removing ActivityRecord{426b9398 u0 org.davidliebman.android.cnn/org.renpy.android.PythonActivity t73}: app died, no saved state
11-01 07:34:52.919: I/WindowState(899): WIN DEATH: Window{432f53e0 u0 org.davidliebman.android.cnn/org.renpy.android.PythonActivity}
11-01 07:34:52.919: W/WindowManager(899): Force-removing child win Window{433044e8 u0 SurfaceView} from container Window{432f53e0 u0 org.davidliebman.android.cnn/org.renpy.android.PythonActivity}
11-01 07:34:52.979: V/SmartFaceService - 3rd party pause(899): onReceive [android.intent.action.ACTIVITY_STATE/org.davidliebman.android.cnn/pause]
11-01 07:34:53.169: I/cm.log.servpro(2417): [Privacy]/ org.davidliebman.android.cnn is not in contact list

this is the kivy log file:

[INFO              ] Logger: Record log in /storage/emulated/0/org.davidliebman.android.cnn/.kivy/logs/kivy_15-11-01_1.txt
[INFO              ] Kivy: v1.9.1-dev
[INFO              ] Python: v2.7.2 (default, Oct 31 2015, 11:22:09)
[GCC 4.9 20140827 (prerelease)]
[WARNING           ] stderr: Traceback (most recent call last):
[WARNING           ] stderr:   File "/home/dave/workspace/awesome-cnn/.buildozer/android/app/main.py", line 12, in <module>
[WARNING           ] stderr:   File "/home/dave/workspace/python-for-android-old/build/python-install/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
[WARNING           ] stderr:   File "/home/dave/workspace/python-for-android-old/build/python-install/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
[WARNING           ] stderr:   File "/home/dave/workspace/python-for-android-old/build/python-install/lib/python2.7/site-packages/numpy/lib/__init__.py", line 18, in <module>
[WARNING           ] stderr:   File "/home/dave/workspace/python-for-android-old/build/python-install/lib/python2.7/site-packages/numpy/lib/polynomial.py", line 19, in <module>
[WARNING           ] stderr:   File "/home/dave/workspace/python-for-android-old/build/python-install/lib/python2.7/site-packages/numpy/linalg/__init__.py", line 51, in <module>
[WARNING           ] stderr:   File "/home/dave/workspace/python-for-android-old/build/python-install/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 29, in <module>
[WARNING           ] stderr: ImportError: dlopen failed: cannot locate symbol "sqrt" referenced by "lapack_lite.so"...

'Sqrt' is not referenced in the import statement in 'main.py'. The import statement in 'main.py' just says 'import numpy'.

Alexander Taylor

unread,
Nov 1, 2015, 8:09:33 AM11/1/15
to python-...@googlegroups.com
I think numpy may be linking with the wrong libraries (it likes to do
this). I've just merged some patches into the old_toolchain branch that
should fix this, so could you try updating to this and building again?
If you're using buildozer, you can do this by deleting the .buildozer
file in your app dir (not the one in your home dir) and running
buildozer again, this will just re-download python-for-android.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com
> <mailto:python-androi...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


signature.asc

David Liebman

unread,
Nov 1, 2015, 8:50:17 AM11/1/15
to Python For Android
I think you've solved my numpy problem with the old_toolchain. thank you.

David Liebman

unread,
Nov 28, 2015, 4:22:57 PM11/28/15
to Python For Android
I think I'm having a similar problem with numpy and the new toolchain. numpy compiles, but when I run my app with a version that has a "import numpy" line in it, the app crashes. Could this be the same problem?

Alexander Taylor

unread,
Nov 28, 2015, 4:24:51 PM11/28/15
to python-...@googlegroups.com
Probably not, the fix should already have been in the new toolchain.

Check the adb logcat and post the result here if you want help debugging.
> <http://libpython2.7.so> 0x426a8c38
> > 11-01 07:34:52.299: D/dalvikvm(31779): Added shared lib
> > /data/app-lib/org.davidliebman.android.cnn-49/libpython2.7.so
> <http://libpython2.7.so> 0x426a8c38
> > 11-01 07:34:52.299: D/dalvikvm(31779): No JNI_OnLoad found in
> > /data/app-lib/org.davidliebman.android.cnn-49/libpython2.7.so
> <http://libpython2.7.so>
> <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>.
>
> > To unsubscribe from this group and all its topics, send an
> email to
> > python-androi...@googlegroups.com
> > <mailto:python-androi...@googlegroups.com>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com
> <mailto:python-androi...@googlegroups.com>.
signature.asc

David Liebman

unread,
Nov 28, 2015, 5:16:32 PM11/28/15
to Python For Android
tihs may be the most interesting line, but after seeing it there I could not open the file on my phone. I hate sounding stupid, but how do I look at this file?

11-28 16:36:57.862: I/python(15696): [INFO              ] [Logger      ] Record log in /data/data/org.davidliebman.android.CNN/files/.kivy/logs/kivy_15-11-28_3.txt
>         > <mailto:python-android+unsub...@googlegroups.com>.
>         > For more options, visit https://groups.google.com/d/optout
>         <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com

Alexander Taylor

unread,
Nov 28, 2015, 5:17:39 PM11/28/15
to python-...@googlegroups.com
You can only look at it on a rooted phone (via any app that lets you
navigate there, like a filebrowser) or from the app itself. I meant the
adb logcat log, as described at
http://kivy.org/docs/guide/android.html#debugging-your-application-on-the-android-platform
> > > <mailto:python-androi...@googlegroups.com
> <javascript:>>.
> > > For more options, visit
> https://groups.google.com/d/optout <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >
> >
> > --
> > You received this message because you are subscribed to a topic in
> the
> > Google Groups "Python For Android" group.
> > To unsubscribe from this topic, visit
> >
> > python-androi...@googlegroups.com <javascript:>
> > <mailto:python-androi...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com
> <mailto:python-androi...@googlegroups.com>.
signature.asc

David Liebman

unread,
Nov 28, 2015, 5:25:14 PM11/28/15
to Python For Android
I found this using monitor, which should be the same stuff. I am using a filter that picks out all the output that includes my package name.

11-28 16:36:57.522: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl.so 0x421aac60
11-28 16:36:57.522: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl.so 0x421aac60
11-28 16:36:57.522: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_image.so 0x421aac60
11-28 16:36:57.522: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_image.so 0x421aac60
11-28 16:36:57.522: D/dalvikvm(15696): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libsdl_image.so 0x421aac60, skipping init
11-28 16:36:57.522: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_ttf.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_ttf.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libsdl_ttf.so 0x421aac60, skipping init
11-28 16:36:57.532: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_mixer.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_mixer.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libsdl_mixer.so 0x421aac60, skipping init
11-28 16:36:57.532: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so 0x421aac60, skipping init
11-28 16:36:57.532: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libapplication.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libapplication.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libapplication.so 0x421aac60, skipping init
11-28 16:36:57.532: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_main.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libsdl_main.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libsdl_main.so 0x421aac60, skipping init
11-28 16:36:57.532: D/dalvikvm(15696): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_io.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): Added shared lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_io.so 0x421aac60
11-28 16:36:57.532: D/dalvikvm(15696): No JNI_OnLoad found in /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_io.so 0x421aac60, skipping init
11-28 16:36:57.532: D/dalvikvm(15696): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/unicodedata.so 0x421aac60
11-28 16:36:57.542: D/dalvikvm(15696): Added shared lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/unicodedata.so 0x421aac60
11-28 16:36:57.542: D/dalvikvm(15696): No JNI_OnLoad found in /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/unicodedata.so 0x421aac60, skipping init
11-28 16:36:57.542: D/dalvikvm(15696): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libsqlite3.so 0x421aac60
11-28 16:36:57.552: D/dalvikvm(15696): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libsqlite3.so 0x421aac60
11-28 16:36:57.552: D/dalvikvm(15696): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libsqlite3.so 0x421aac60, skipping init
11-28 16:36:57.552: D/dalvikvm(15696): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_sqlite3.so 0x421aac60
11-28 16:36:57.552: E/dalvikvm(15696): dlopen("/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_sqlite3.so") failed: dlopen failed: library "/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_sqlite3.so" not found
11-28 16:36:57.552: D/dalvikvm(15696): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_imaging.so 0x421aac60
11-28 16:36:57.552: E/dalvikvm(15696): dlopen("/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_imaging.so") failed: dlopen failed: library "/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_imaging.so" not found
11-28 16:36:57.612: E/TopActivity(4389): -org.davidliebman.android.CNN
11-28 16:36:57.622: D/AutostartService(4366): set fg pkgname:org.davidliebman.android.CNN
11-28 16:36:57.742: I/python(15696): ['/data/data/org.davidliebman.android.CNN/files/lib/python2.7/site-packages', '/data/data/org.davidliebman.android.CNN/files/lib/site-python']
11-28 16:36:57.742: I/python(15696): Android path ['/data/data/org.davidliebman.android.CNN/files/lib/python27.zip', '/data/data/org.davidliebman.android.CNN/files/lib/python2.7', '/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload', '/data/data/org.davidliebman.android.CNN/files/lib/python2.7/site-packages', '/data/data/org.davidliebman.android.CNN/files']

11-28 16:36:57.862: I/python(15696): [INFO              ] [Logger      ] Record log in /data/data/org.davidliebman.android.CNN/files/.kivy/logs/kivy_15-11-28_3.txt
11-28 16:36:57.982: I/WindowState(896): WIN DEATH: Window{458bd160 u0 org.davidliebman.android.CNN/org.renpy.android.PythonActivity}
11-28 16:36:57.982: W/WindowManager(896): Force-removing child win Window{458fc600 u0 SurfaceView} from container Window{458bd160 u0 org.davidliebman.android.CNN/org.renpy.android.PythonActivity}
11-28 16:36:57.992: I/ActivityManager(896): Process org.davidliebman.android.CNN:python (pid 15696) (adj 0) has died.
11-28 16:36:57.992: W/ActivityManager(896): Force removing ActivityRecord{43352cb8 u0 org.davidliebman.android.CNN/org.renpy.android.PythonActivity t34}: app died, no saved state
11-28 16:36:58.032: V/SmartFaceService - 3rd party pause(896): onReceive [android.intent.action.ACTIVITY_STATE/org.davidliebman.android.CNN/pause]

I hope this is helpful.
>     >         > <mailto:python-android+unsub...@googlegroups.com
>     <javascript:>>.
>     >         > For more options, visit
>     https://groups.google.com/d/optout <https://groups.google.com/d/optout>
>     >         <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>     >
>     >
>     > --
>     > You received this message because you are subscribed to a topic in
>     the
>     > Google Groups "Python For Android" group.
>     > To unsubscribe from this topic, visit
>     >
>     https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe
>     <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>.
>
>     > To unsubscribe from this group and all its topics, send an email to
>     > python-androi...@googlegroups.com <javascript:>
>     > <mailto:python-android+unsub...@googlegroups.com <javascript:>>.
>     > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com

Alexander Taylor

unread,
Nov 28, 2015, 5:26:02 PM11/28/15
to python-...@googlegroups.com
Filter on the string 'python' instead (that's the keyword used by the
logger).
> <mailto:python-androi...@googlegroups.com <javascript:>
> > <javascript:>>.
> > > > For more options, visit
> > https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>
> > > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>>.
> > >
> > >
> > > --
> > > You received this message because you are subscribed to a
> topic in
> > the
> > > Google Groups "Python For Android" group.
> > > To unsubscribe from this topic, visit
> > >
> >
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe
> <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>
>
> >
> <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe
> <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>>.
>
> >
> > > To unsubscribe from this group and all its topics, send an
> email to
> > > python-androi...@googlegroups.com <javascript:>
> > > <mailto:python-androi...@googlegroups.com
> <javascript:> <javascript:>>.
> > > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >
> >
> > --
> > You received this message because you are subscribed to a topic in
> the
> > Google Groups "Python For Android" group.
> > To unsubscribe from this topic, visit
> >
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe
> <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>.
>
> > To unsubscribe from this group and all its topics, send an email to
> > python-androi...@googlegroups.com <javascript:>
> > <mailto:python-androi...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com
> <mailto:python-androi...@googlegroups.com>.
signature.asc

David Liebman

unread,
Nov 28, 2015, 5:36:12 PM11/28/15
to Python For Android
11-28 17:37:08.482: D/dalvikvm(15882): Trying to load lib /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so 0x42672cd8
11-28 17:37:08.492: D/dalvikvm(15882): Added shared lib /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so 0x42672cd8
11-28 17:37:08.492: D/dalvikvm(15882): No JNI_OnLoad found in /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so 0x42672cd8, skipping init
11-28 17:37:08.492: D/dalvikvm(15882): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_io.so 0x42672cd8
11-28 17:37:08.492: D/dalvikvm(15882): Added shared lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_io.so 0x42672cd8
11-28 17:37:08.492: D/dalvikvm(15882): No JNI_OnLoad found in /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_io.so 0x42672cd8, skipping init
11-28 17:37:08.492: D/dalvikvm(15882): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/unicodedata.so 0x42672cd8
11-28 17:37:08.492: D/dalvikvm(15882): Added shared lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/unicodedata.so 0x42672cd8
11-28 17:37:08.492: D/dalvikvm(15882): No JNI_OnLoad found in /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/unicodedata.so 0x42672cd8, skipping init
11-28 17:37:08.502: D/dalvikvm(15882): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_sqlite3.so 0x42672cd8
11-28 17:37:08.502: E/dalvikvm(15882): dlopen("/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_sqlite3.so") failed: dlopen failed: library "/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_sqlite3.so" not found
11-28 17:37:08.502: D/dalvikvm(15882): Trying to load lib /data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_imaging.so 0x42672cd8
11-28 17:37:08.502: E/dalvikvm(15882): dlopen("/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_imaging.so") failed: dlopen failed: library "/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload/_imaging.so" not found
11-28 17:37:08.612: I/python(15882): Initialize Python for Android
11-28 17:37:08.722: I/python(15882): ['/data/data/org.davidliebman.android.CNN/files/lib/python2.7/site-packages', '/data/data/org.davidliebman.android.CNN/files/lib/site-python']
11-28 17:37:08.722: I/python(15882): Android path ['/data/data/org.davidliebman.android.CNN/files/lib/python27.zip', '/data/data/org.davidliebman.android.CNN/files/lib/python2.7', '/data/data/org.davidliebman.android.CNN/files/lib/python2.7/lib-dynload', '/data/data/org.davidliebman.android.CNN/files/lib/python2.7/site-packages', '/data/data/org.davidliebman.android.CNN/files']
11-28 17:37:08.892: I/python(15882): [INFO              ] [Python      ] v2.7.2 (default, Nov 28 2015, 15:43:01)
11-28 17:37:09.032: I/python(15882):    File "/home/dave/.local/share/python-for-android/dists/AwesomeCNN/private/lib/python2.7/site-packages/numpy/__init__.py", line 170, in <module>
11-28 17:37:09.032: I/python(15882):    File "/home/dave/.local/share/python-for-android/dists/AwesomeCNN/private/lib/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
11-28 17:37:09.032: I/python(15882):    File "/home/dave/.local/share/python-for-android/dists/AwesomeCNN/private/lib/python2.7/site-packages/numpy/lib/__init__.py", line 22, in <module>
11-28 17:37:09.042: I/python(15882):    File "/home/dave/.local/share/python-for-android/dists/AwesomeCNN/private/lib/python2.7/site-packages/numpy/lib/npyio.py", line 29, in <module>
11-28 17:37:09.062: I/python(15882): Python for android ended.
11-28 17:37:09.092: I/ActivityManager(896): Process org.davidliebman.android.CNN:python (pid 15882) (adj 0) has died.
11-28 17:37:09.092: I/WindowState(896): WIN DEATH: Window{43771d80 u0 org.davidliebman.android.CNN/org.renpy.android.PythonActivity}
11-28 17:37:09.092: W/WindowManager(896): Force-removing child win Window{45239c30 u0 SurfaceView} from container Window{43771d80 u0 org.davidliebman.android.CNN/org.renpy.android.PythonActivity}
11-28 17:37:09.092: W/ActivityManager(896): Force removing ActivityRecord{454f00d8 u0 org.davidliebman.android.CNN/org.renpy.android.PythonActivity t7}: app died, no saved state

ok, thanks
>     <mailto:python-android+unsub...@googlegroups.com <javascript:>
>     >     <javascript:>>.
>     >     >         > For more options, visit
>     >     https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>
>     <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>
>     >     >         <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>
>     >     <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>>.
>     >     >
>     >     >
>     >     > --
>     >     > You received this message because you are subscribed to a
>     topic in
>     >     the
>     >     > Google Groups "Python For Android" group.
>     >     > To unsubscribe from this topic, visit
>     >     >
>     >    
>     https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe
>     <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>
>
>     >    
>     <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe
>     <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>>.
>
>     >
>     >     > To unsubscribe from this group and all its topics, send an
>     email to
>     >     > python-androi...@googlegroups.com <javascript:>
>     >     > <mailto:python-android+unsub...@googlegroups.com
>     <javascript:> <javascript:>>.
>     >     > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>
>     >     <https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>>.
>     >
>     >
>     > --
>     > You received this message because you are subscribed to a topic in
>     the
>     > Google Groups "Python For Android" group.
>     > To unsubscribe from this topic, visit
>     >
>     https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe
>     <https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe>.
>
>     > To unsubscribe from this group and all its topics, send an email to
>     > python-androi...@googlegroups.com <javascript:>
>     > <mailto:python-android+unsub...@googlegroups.com <javascript:>>.
>     > For more options, visit https://groups.google.com/d/optout
>     <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com

David Liebman

unread,
Dec 1, 2015, 2:17:32 PM12/1/15
to Python For Android
what does this mean? it is numpy, right? is this an unsolvable problem?
...

Alexander Taylor

unread,
Dec 1, 2015, 2:20:33 PM12/1/15
to python-...@googlegroups.com
I don't know what's up here - maybe you could check the numpy source to
read about what the traceback comes from.

On 01/12/15 19:17, David Liebman wrote:
> what does this mean? it is numpy, right? is this an unsolvable problem?
>
> On Saturday, November 28, 2015 at 5:36:12 PM UTC-5, David Liebman wrote:
>
> 11-28 17:37:08.482: D/dalvikvm(15882): Trying to load lib
> /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so
> <http://libpython2.7.so> 0x42672cd8
> 11-28 17:37:08.492: D/dalvikvm(15882): Added shared lib
> /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so
> <http://libpython2.7.so> 0x42672cd8
> 11-28 17:37:08.492: D/dalvikvm(15882): No JNI_OnLoad found in
> /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so
> <http://libpython2.7.so> 0x42672cd8, skipping init
> <http://libpython2.7.so> 0x421aac60
> > 11-28 16:36:57.532: D/dalvikvm(15696): Added shared lib
> > /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so
> <http://libpython2.7.so> 0x421aac60
> > 11-28 16:36:57.532: D/dalvikvm(15696): No JNI_OnLoad found in
> > /data/app-lib/org.davidliebman.android.CNN-14/libpython2.7.so
> <http://libpython2.7.so>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python For Android" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/python-android/Ky6SsAlUF3A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> python-androi...@googlegroups.com
> <mailto:python-androi...@googlegroups.com>.
signature.asc
Reply all
Reply to author
Forward
0 new messages