python kivy.app uses import yfinance convert to apk successfully, but apk is not opening in mobile.

169 views
Skip to first unread message

管志宏

unread,
Dec 12, 2022, 1:11:48 AM12/12/22
to kivy-...@googlegroups.com

Dear Sir:

    I am new to both python and kivy. The attached code is work ok in Ubuntu VM. I created the apk file using buildozer and successfully. Then I installed my apk file in mobile and tried to open. I got the loading text with kivy logo but the app is closed immediately. Originally, the apk. Works ok without adding “ import yfinance as yf “, As there is no error, I pretty sure that import the yfinance module cause the apk failure.  Could you please help me how to edit the buildozer.spec to fix the problem. Thanks!

There are three attachments: 1. output from buildozer 2. main.py 3. buildozer.spec



 

buildozer_output.docx
main.py
buildozer.spec

Moqing Yu

unread,
Dec 12, 2022, 2:31:48 AM12/12/22
to kivy-...@googlegroups.com
Please use adb to catch the app log,  it is very useful. 

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CAEg2jyht%3DqOxSf9deU5Fc-R33XqjX%2BxtDSDQ3WfTev%2BcceZJjQ%40mail.gmail.com.
<buildozer_output.docx><main.py><buildozer.spec>

Robert

unread,
Dec 12, 2022, 12:08:30 PM12/12/22
to Kivy users support
As the other poster says, get an error message...

管志宏

unread,
Dec 15, 2022, 10:18:03 PM12/15/22
to Kivy users support

Dear sir:

    Thank you very much for your help about telling me to use adb to catch apk executing log. I installed adb and run apk thru USB. I got error message from log file. I edit the buildozer.spec and add all the missing requirements from the log report. The problem was solved and the main page can be opened. I use the function of the ping IP that works OK. But I use the function of downloading data with yfinance module. The apk is down for all and even I can’t use the quit button to quit the apk. Enclosed here with  the log file and .py file. I can see the log file showing something related to “hostname=query2.finance.yahoo.com”(at time 10:20) and I am not quite understand the log file what is the reason to cause the apk failure. Please help me how to fix the problem. Thanks!

Robert 在 2022年12月13日 星期二凌晨1:08:30 [UTC+8] 的信中寫道:
apk_log.txt
takeinput7.py

Robert

unread,
Dec 16, 2022, 1:04:20 AM12/16/22
to Kivy users support
I don't know much

1) There is this 12-16 10:19:22.205 26041 26062 W linker : dlopen failed: "/data/data/org.test.takeinpdy/files/app/_python_bundle/site-packages/charset_normalizer/md.so" has unexpected e_machine: 62, retry

So try using chardet instead of charset-normalizer

2) Then search the log for     Traceback
There is some yfinace/pands issue - but I don't know anything about that.
Reply all
Reply to author
Forward
0 new messages