-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
p4a built x86_64 library(psutil, "ELF 64-bit LSB shared object, x86-64") for ARM #2506
Comments
Not exactly, psutil was download by pip because psutil has no p4a recipe https://github.com/kivy/python-for-android/tree/develop/pythonforandroid/recipes and the downloaded PyPi package is not pure Python and does not support Android https://pypi.org/project/psutil/ The downloaded package contained an x86_64 binary for some other platform, which is what you see. You might consider writing a recipe for psutil, but Android is not POSIX compliant so I'd guess that would be hard or impossible (but I could be wrong). This forum is for development issues, if you have any further usage issues please use https://discord.gg/UJ3PGbhs or https://groups.google.com/g/kivy-users |
Yes, thanks. I wrote a recipe and solved the problem. kivy@kivy-virtual-machine:/$ file /home/kivy/.local/share/python-for-android/build/other_builds/hostpython3/desktop/hostpython3/native-build/Lib/site-packages/psutil/_psutil_linux.cpython-38-x86_64-linux-gnu.so from pythonforandroid.recipe import PythonRecipe class PsUitlRecipe(PythonRecipe):
recipe = PsUitlRecipe() |
@killangell I use your recipes. But still 64-bit error, not 32-bit |
Checklist
p4a.branch = develop
)Versions
Description
// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?
buildozer.spec
Command:
Logs
kivy@kivy-virtual-machine:/$ file /home/kivy/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/_python_bundle/_python_bundle/site-packages/psutil/_psutil_linux.so
/home/kivy/.local/share/python-for-android/dists/unnamed_dist_1__armeabi-v7a/_python_bundle/_python_bundle/site-packages/psutil/_psutil_linux.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=7d5053a326cc3a710e61fdd8dfc017217c579204, with debug_info, not stripped
kivy@kivy-virtual-machine:/$ file /home/kivy/.local/share/python-for-android/dists/unnamed_dist_1__arm64-v8a/_python_bundle/_python_bundle/site-packages/psutil/_psutil_linux.so
/home/kivy/.local/share/python-for-android/dists/unnamed_dist_1__arm64-v8a/_python_bundle/_python_bundle/site-packages/psutil/_psutil_linux.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=7d5053a326cc3a710e61fdd8dfc017217c579204, with debug_info, not stripped
10-15 20:37:58.354 23038 23162 I python : Traceback (most recent call last):
10-15 20:37:58.354 23038 23162 I python : File "/home/kivy/work/project/biga_futures/main.py", line 1, in
10-15 20:37:58.354 23038 23162 I python : File "/home/kivy/work/project/biga_futures/tqsdk/init.py", line 6, in
10-15 20:37:58.355 23038 23162 I python : File "/home/kivy/work/project/biga_futures/tqsdk/api.py", line 39, in
10-15 20:37:58.355 23038 23162 I python : File "/home/kivy/work/project/biga_futures/psutil/init.py", line 99, in
10-15 20:37:58.355 23038 23162 I python : File "/home/kivy/work/project/biga_futures/psutil/_pslinux.py", line 26, in
10-15 20:37:58.355 23038 23162 I python : ImportError: cannot import name '_psutil_linux' from partially initialized module 'psutil' (most likely due to a circular import) (./psutil/init.pyc)
10-15 20:37:58.355 23038 23162 I python : Python for android ended.
The text was updated successfully, but these errors were encountered: