Closed Liujiangy1 closed 5 years ago
I replaced numpy with pillow, and the same problem will occur. I changed ndk19 to ndk17, the same problem. I guess, is the reason I use clang
I am also facing same problem . I am using Ubuntu 17.04 TLS
here is my logcat
==========================================================
db logcat *:S python:D'
--------- beginning of crash
--------- beginning of system
--------- beginning of main
07-17 14:27:57.833 25394 25647 I python : Initializing Python for Android
07-17 14:27:57.833 25394 25647 I python : Setting additional env vars from p4a_env_vars.txt
07-17 14:27:57.833 25394 25647 I python : Changing directory to the one provided by ANDROID_ARGUMENT
07-17 14:27:57.833 25394 25647 I python : /data/user/0/org.mytest.mytestapp/files/app
07-17 14:27:57.840 25394 25647 I python : Preparing to initialize python
07-17 14:27:57.840 25394 25647 I python : _python_bundle dir exists
07-17 14:27:57.840 25394 25647 I python : calculated paths to be...
07-17 14:27:57.840 25394 25647 I python : /data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules
07-17 14:27:57.853 25394 25647 I python : set wchar paths...
07-17 14:27:57.939 25394 25647 I python : Initialized python
07-17 14:27:57.939 25394 25647 I python : AND: Init threads
07-17 14:27:57.941 25394 25647 I python : testing python print redirection
07-17 14:27:57.943 25394 25647 I python : Android path ['.', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/modules', '/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages']
07-17 14:27:57.944 25394 25647 I python : os.environ is environ({'PATH': '/sbin:/system/sbin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'DOWNLOAD_CACHE': '/data/cache', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'BOOTCLASSPATH': '/system/framework/qtiNetworkLib.jar:/system/framework/qcom.fmradio.jar:/system/framework/com.qualcomm.qti.camera.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/core-oj.jar:/system/framework/core-libart.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/bouncycastle.jar:/system/framework/apache-xml.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/android.hidl.base-V1.0-java.jar:/system/framework/android.hidl.manager-V1.0-java.jar:/system/framework/framework-oahl-backward-compatibility.jar:/system/framework/android.test.base.jar:/system/framework/tcmiface.jar:/system/framework/WfdCommon.jar:/system/framework/oem-services.jar:/system/framework/telephony-ext.jar:/system/app/miui/miui.apk:/system/app/miuisystem/miuisystem.apk', 'SYSTEMSERVERCLASSPATH': '/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/wifi-service.jar:/system/framework/com.android.location.provider.jar', 'ANDROID_SOCKET_zygote_secondary': '13', 'ANDROID_ENTRYPOINT': 'main.pyc', 'ANDROID_ARGUMENT': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_APP_PATH': '/data/user/0/org.mytest.mytestapp/files/app', 'ANDROID_PRIVATE': '/data/user/0/org.mytest.mytestapp/files', 'ANDROID_UNPACK': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONHOME': '/data/user/0/org.mytest.mytestapp/files/app', 'PYTHONPATH': '/data/user/0/org.mytest.mytestapp/files/app:/data/user/0/org.mytest.mytestapp/files/app/lib', 'PYTHONOPTIMIZE': '2', 'P4A_BOOTSTRAP': 'SDL2', 'PYTHON_NAME': 'python', 'P4A_IS_WINDOWED': 'True', 'P4A_ORIENTATION': 'portrait', 'P4A_NUMERIC_VERSION': 'None', 'P4A_MINSDK': '21', 'LC_CTYPE': 'C.UTF-8'})
07-17 14:27:57.944 25394 25647 I python : Android kivy bootstrap done. name is main
07-17 14:27:57.944 25394 25647 I python : AND: Ran string
07-17 14:27:57.944 25394 25647 I python : Run user program, change dir and execute entrypoint
07-17 14:27:58.241 25394 25647 I python : [WARNING] [Config ] Older configuration version detected (0 instead of 21)
07-17 14:27:58.242 25394 25647 I python : [WARNING] [Config ] Upgrading configuration in progress.
07-17 14:27:58.271 25394 25647 I python : [INFO ] [Logger ] Record log in /data/user/0/org.mytest.mytestapp/files/app/.kivy/logs/kivy_19-07-17_0.txt
07-17 14:27:58.272 25394 25647 I python : [INFO ] [Kivy ] v1.11.0
07-17 14:27:58.273 25394 25647 I python : [INFO ] [Kivy ] Installed at "/data/user/0/org.mytest.mytestapp/files/app/_python_bundle/site-packages/kivy/init.pyc"
07-17 14:27:58.273 25394 25647 I python : [INFO ] [Python ] v3.7.1 (default, Jul 17 2019, 13:17:29)
07-17 14:27:58.273 25394 25647 I python : [Clang 6.0.2 (https://android.googlesource.com/toolchain/clang 183abd29fc496f55
07-17 14:27:58.275 25394 25647 I python : [INFO ] [Python ] Interpreter at "android_python"
07-17 14:28:00.103 25394 25647 I python : [INFO ] [Factory ] 184 symbols loaded
07-17 14:28:00.956 25394 25647 I python : [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
07-17 14:28:01.086 25394 25647 I python : [INFO ] [Text ] Provider: sdl2
07-17 14:28:02.075 25394 25647 I python : Traceback (most recent call last):
07-17 14:28:02.076 25394 25647 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/app/main.py", line 18, in
07-17 14:39:39.102 32754 1200 I python : During handling of the above exception, another exception occurred:
07-17 14:39:39.102 32754 1200 I python :
07-17 14:39:39.102 32754 1200 I python : Traceback (most recent call last):
07-17 14:39:39.103 32754 1200 I python : File "/home/imijanur/Desktop/kivy/mt/.buildozer/android/app/main.py", line 18, in
====================================================================
Is there anyone who can give a proper solution. I am surfing on this topic from 5 days but didnt get any satisfactory solution. Please help me out from there
I am using nsetools library on my app
nsetools has used nsepy nsepy used bs4, numpy numpy used pandas library pandas library has dependency pytz
i have added all libraries into my buildozer.spec requirements. also added pytz
Now getting this logcat
here is my buildozer.spec
[app]
title = My Application
package.name = mytestapp
package.domain = org.mytest
source.dir = .
source.include_exts = py,png,jpg,kv,atlas
version = 0.1
requirements = python3,kivy,nsetools,dateutil,nsepy,requests,numpy,beautifulsoup4,pandas,pytz
garden_requirements = navigationdrawer
presplash.filename = %(source.dir)s/newslash.jpg
icon.filename = %(source.dir)s/bgless.png
orientation = portrait
#
#
#
osx.python_version = 3
osx.kivy_version = 1.9.1
#
#
fullscreen = 0
android.permissions = INTERNET
android.logcat_filters = *:S python:D
android.arch = armeabi-v7a
#
#
#
#
ios.kivy_ios_url = https://github.com/kivy/kivy-ios ios.kivy_ios_branch = master
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy ios.ios_deploy_branch = 1.7.0
[buildozer]
log_level = 2
warn_on_root = 1
#
#
#
#
#
#
#
#
#
#
Please help me out there.
file:///home/imijanur/Desktop/kivy/mt/logxat.txt
Does it work on https://github.com/kivy/python-for-android/pull/1722?
I'm going to close this as probably fixed on the #1722 branch, but I'll be testing it as part of merging that so should catch any issues. Please feel free to reopen if you've tested on that branch and found it is still an issue though.
Now my system has some errors for my mistake. I will check it later after solving this problem
On Monday, July 29, 2019, Alexander Taylor notifications@github.com wrote:
Closed #1923 https://github.com/kivy/python-for-android/issues/1923.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kivy/python-for-android/issues/1923?email_source=notifications&email_token=AE5N2AAB5XFZOKYW5EXKJ4LQBYDQZA5CNFSM4ID4M6O2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSXTK2MA#event-2514922800, or mute the thread https://github.com/notifications/unsubscribe-auth/AE5N2AF4FDM3J7BQ7TNTRSTQBYDQZANCNFSM4ID4M6OQ .
-- Mijanur Rahaman
Versions
Description
I use clang to compile, no problem with adding numpy, once the numpy is added, the following problem occurs.
Command
p4a apk --version 0.1 --bootstrap=sdl2 --requirements=python3,android,numpy --arch=armeabi-v7a --ndk-dir=/home/liu/android-ndk-r19c
Logs