Skip to content
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

dlopen failed: python2.7/site-packages/grpc/_cython/cygrpc.so not 32-bit: 2 #1052

Closed
tito opened this issue May 14, 2017 · 7 comments
Closed

Comments

@tito
Copy link
Member

tito commented May 14, 2017

@gbdantoni commented on Mon Mar 13 2017

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.

@tito commented on Sun May 14 2017

Hi, this is not related to buildozer itself, but python-for-android at least. I'm moving the issue.

@NeonSky
Copy link

NeonSky commented May 17, 2019

@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

@inclement
Copy link
Member

@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
Copy link

@NeonSky can u solve the problem? because i got this error too

@callumpurcell1
Copy link

Also had the same problem, any solution?

@kulothunganug
Copy link
Contributor

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

@ghost ghost mentioned this issue Oct 5, 2021
@ALooRD8
Copy link

ALooRD8 commented Mar 11, 2023

I have the same issue any solution

@TLQB
Copy link

TLQB commented Apr 12, 2023

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants