You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dlopen failed: python2.7/site-packages/grpc/_cython/cygrpc.so not 32-bit: 2 #1052
I'm trying to build a python app for Android that uses grpc. I'm using Buildozer 0.32 with the new toolchain on Ubuntu 16.04.2. The build succeeds and it produces an APK but when I try to launch it on an Android tablet I'm getting the following output from logcat. My requirements statement includes kivy, grpcio, hostpython2, enum
I/python (29857): Traceback (most recent call last):
I/python (29857): File "/media/newDrive/gaitan/PythonProjects/hwclient/.buildozer/android/app/main.py", line 34, in <module>
I/python (29857): File "/media/newDrive/gaitan/PythonProjects/hwclient/.buildozer/android/platform/build/dists/hwclient/private/lib/python2.7/site-packages/grpc/__init__.py", line 37, in <module>
I/python (29857): ImportError: dlopen failed: "/data/data/ddw_gd.com.hwclient/files/app/lib/python2.7/site-packages/grpc/_cython/cygrpc.so" not 32-bit: 2
I/python (29857): Python for android ended.
@inclement why was this issue closed? I am currently facing a very similar issue when using Firestore.
05-16 11:15:52.027 19979 20220 I python : Traceback (most recent call last):
05-16 11:15:52.028 19979 20220 I python : File "/buildozer/app/.buildozer/android/app/main.py", line 7, in <module>
05-16 11:15:52.028 19979 20220 I python : File "/buildozer/app/.buildozer/android/app/presenter/delivery_request_form.py", line 7, in <module>
05-16 11:15:52.028 19979 20220 I python : File "/buildozer/app/.buildozer/android/app/model/delivery_request_uploader.py", line 2, in <module>
05-16 11:15:52.029 19979 20220 I python : File "/buildozer/app/.buildozer/android/app/model/firebase/firestore.py", line 5, in <module>
05-16 11:15:52.029 19979 20220 I python : File "/buildozer/app/.buildozer/android/platform/build/build/python-installs/carrepsa/google/cloud/firestore_v1/__init__.py", line 22, in <module>
05-16 11:15:52.029 19979 20220 I python : File "/buildozer/app/.buildozer/android/platform/build/build/python-installs/carrepsa/google/cloud/firestore_v1/_helpers.py", line 21, in <module>
05-16 11:15:52.030 19979 20220 I python : File "/buildozer/app/.buildozer/android/platform/build/build/python-installs/carrepsa/grpc/__init__.py", line 23, in <module>
05-16 11:15:52.030 19979 20220 I python : ImportError: dlopen failed: "/data/data/org.jigglypuff.carrepsa/files/app/_python_bundle/site-packages/grpc/_cython/cygrpc.so" is 64-bit instead of 32-bit
The issue is that grpc needs a python-for-android recipe to build correctly. Right now it's been built for your desktop, not your phone, that's why the architecture is wrong.
We should be able to log a better message when this happens, feel free to open an issue about this if there isn't one already.
Activity
NeonSky commentedon May 17, 2019
@inclement why was this issue closed? I am currently facing a very similar issue when using Firestore.
inclement commentedon May 17, 2019
@NeonSky Because it was old and had no followup.
The issue is that grpc needs a python-for-android recipe to build correctly. Right now it's been built for your desktop, not your phone, that's why the architecture is wrong.
We should be able to log a better message when this happens, feel free to open an issue about this if there isn't one already.
JuditNugroho commentedon Sep 10, 2020
@NeonSky can u solve the problem? because i got this error too
callumpurcell1 commentedon Oct 24, 2020
Also had the same problem, any solution?
kulothunganug commentedon May 26, 2021
I am also facing this error when using google-cloud-firestore module
Is making a recipe for this would fix this issue?
P.S. I tried but its a bit confusing
ALooRD8 commentedon Mar 11, 2023
I have the same issue any solution
TLQB commentedon Apr 12, 2023
I have the same issue.