-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kivy app Crashes while import openpyxl #1001
Comments
did you add openpyxl to your requirements line in buildozer.spec ? can you share the buildozer.spec and look for the error in your logcat for the error and share it? |
Yes i have added openpyxl in buildozer.spec file.I am attaching my .spec file.Note that the app runs fine on android when i remove openpyxl from both my main.py file and .spec file.But when i add import openpyxl it crashes on my android but during buildozer android debug process it does not give any errors.
|
|
8:16:34.918 29679 29715 V python : extracting _python_bundle/site-packages/jnius_config.pyc 12-13 18:16:36.019 29679 29679 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/org.test.myapp-1/lib/arm, /data/app/org.test.myapp-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython2.7.so" |
hm, try adding |
After that the app still crashes.I attaching the new adb logcat file: 12-13 18:59:59.212 4450 4450 V pythonutil: Library loading error: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.test.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/org.test.myapp-1/lib/arm, /data/app/org.test.myapp-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libpython2.7.so" 12-13 19:00:02.489 4450 4650 I python : File "/home/physics/Desktop/test2/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/openpyxl/styles/alignment.py", line 5, in 12-13 19:00:10.665 4758 4758 V pythonutil: Loading library: python2.7 12-13 19:00:13.982 4758 4778 I python : File "/home/physics/Desktop/test2/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/openpyxl/xml/functions.py", line 48, in |
Now i am going to add et_xmlfile in the requirements field.Also this seems to be a major issue: |
Ok it is working now.After adding et_xmlfile in the requirements.Thank you so much . |
Ok, nice, i wonder if it's a failure of processing dependencies on our side, so i'll leave it open for further investigations. |
|
I once had the same problem.I solved it by adding jdcal and et_xmlfile
inside the buildozer.spec file.
Below is the link if you want to see how I solved it:
#1001
…On Tue, 24 Mar 2020, 14:34 Yash.mathur, ***@***.***> wrote:
hm, try adding jdcal (https://pypi.org/project/jdcal/) to requirements
seems like it's missing
plz tell me the command of using jdcal!!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1001 (comment)>,
or unsubscribe
</~https://github.com/notifications/unsubscribe-auth/AOAXWCECZ77O4LVD3JSY4Q3RJBZQPANCNFSM4JZ7EKIQ>
.
|
… On Tue, 24 Mar 2020, 14:39 Anoop Rana, ***@***.***> wrote:
I once had the same problem.I solved it by adding jdcal and et_xmlfile
inside the buildozer.spec file.
Below is the link if you want to see how I solved it:
#1001
On Tue, 24 Mar 2020, 14:34 Yash.mathur, ***@***.***> wrote:
> hm, try adding jdcal (https://pypi.org/project/jdcal/) to requirements
> seems like it's missing
> plz tell me the command of using jdcal!!
>
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub
> <#1001 (comment)>,
> or unsubscribe
> </~https://github.com/notifications/unsubscribe-auth/AOAXWCECZ77O4LVD3JSY4Q3RJBZQPANCNFSM4JZ7EKIQ>
> .
>
|
This works well for writing a file, but not enough for reading xlsx. Obviously in the spec file some library is needed for this ... all_players = pd.read_excel ('all_players.xlsx') #APPLICATION CRASHED Please help. |
i am facing same issue can u please help?? |
I think you should switch to csv format. This is a more appropriate solution.
--
Отправлено из Mail.ru для Android суббота, 24 декабря 2022г., 19:19 +03:00 от Vasa john harry Asher ***@***.*** :
…>I have been trying to import openpyxl in my main.py file.When i run buildozer android debug everything seems to be working fine.But when i open the app on my android it crashes.Can you help me with finding the solution.
>Why can't i import openpyxl.? When i don't use this module in my main file everthing works good but after importing it the app crashes.
i am facing same issue can u please help??
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you commented. Message ID: @ github . com>
|
I have been trying to import openpyxl in my main.py file.When i run buildozer android debug everything seems to be working fine.But when i open the app on my android it crashes.Can you help me with finding the solution.
Why can't i import openpyxl.?
When i don't use this module in my main file everthing works good but after importing it the app crashes.
The text was updated successfully, but these errors were encountered: