Skip to content

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

Closed

Description

@tito

@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.

Activity

  1. NeonSky commented on May 17, 2019

    @NeonSky

    @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
    
  2. inclement commented on May 17, 2019

    @inclement
    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.

  3. JuditNugroho commented on Sep 10, 2020

    @JuditNugroho

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

  4. callumpurcell1 commented on Oct 24, 2020

    @callumpurcell1

    Also had the same problem, any solution?

  5. kulothunganug commented on May 26, 2021

    @kulothunganug
    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

  6. ALooRD8 commented on Mar 11, 2023

    @ALooRD8

    I have the same issue any solution

  7. TLQB commented on Apr 12, 2023

    @TLQB

    I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions