Closed nitanmarcel closed 5 years ago
This doesn't seem like a kivy issue, but a py4a issue.
Don't know what has happened here, unless you have set $P4A_kivy_DIR
perhaps?
@inclement Yes, I've set that $P4A_kivy_DIR
@nitanmarcel Aha, in that case I think you're hitting a bug where p4a does not recompile kivy because the setup.py process sees the .so files are already present, and doesn't know that they are for the wrong architecture. I think I'm working around that by deleting kivy/_event.c
, which should trigger cython to be re-run without preventing the Kivy install from being used for other stuff.
@inclement deleted the env variable also the .buildozer folder and the error is still there
Can you do that again, re-run buildozer, and post the full build log?
@inclement Here is the full console log https://transfer.sh/FqXFs/buildozer.log
Can you do that again, re-run buildozer, and post the full build log?
After a lot of fights with switching between different versions of p4a and kivy I managed to build using kivy==master . I still have no idea what caused that weird bug and why it's working right now. I will leave this issue open if you need it for future reference.
where did you give kivy==master
this? in buildozer.spec
? i also have the same issue, please help
Once I fixed this issue as mentioned above and rebuilt, the 64-bit app crashes upon launch. The logger doesn't specify the error and there's no Traceback, it just says that python-for-android ended. Is there possibly an issue with the imports or would it be with my phone (Huawei P20)?
@TechnoLenzer Please paste the full adb logcat output at the kivy-users mailing list or kivy discord channel.
I just encountered a similar error with android while moving from python2 to python3. Cleaning up after previous builds helps.
@inclement The issue wasn't actually anything to do with the change to 64-bit, but it was that the app crashed when it asked for the ACCESS_FINE_LOCATION permission. I didn't really need it so I deleted it from the code.
This fails on a Huawei phone. In my other phones works just fine. This applies for the laptop as well. What could be the issue ?
06-12 19:39:53.261 10723 10762 I python : File "/data/data/org.test.test_buddy.myapp/files/app/view/welcome.kv", line 46, in
I also encountered same problem.
File "/home/kivy/test/.buildozer/android/app/schedule/scheduler.py", line 10, in <module>
File "/home/kivy/test/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/psutil/__init__.py", line 95, in <module>
File "/home/kivy/test/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/myapp/psutil/_pslinux.py", line 26, in <module>
ImportError: dlopen failed: can't find ARM symbol
dlopen failed: can't find ARM symbol
we are also facing this problem ImportError: dlopen failed: "/data/data/org.test.fpindia/files/app/_python_bundle/site-packages/cv2/cv2.so" has bad ELF magic please help Thanks...
Versions
git clone
and using a custom path in buildozer.specsrequirements.source.kivy = ~/projects/kivy-apps/rextester/kivy
Description
I can't make the app run on my android phone. It works on my pc but on my phone this error comes up:
ImportError: dlopen failed: "/data/data/demo.org.rextesterdroid/files/app/_python_bundle/site-packages/kivy/_clock.so" is 64-bit instead of 32-bit
Logs