I'm getting the below error when trying to package my app using buildozer (VM with Ubuntu):
ImportError: dlopen failed: "/data/data/org.test.myapp/files/app/_python_bundle/site-packages/grpc/_cython/cygrpc.so" is a 64-bit instead of a 32-bit
Apparently this is because I need to write a custom recipe for grpcio, so I did that:
class GrpcioRecipe(CythonRecipe):
version = 'master'
url = 'https://github.com/grpc/grpc/archive/{version}.zip'
name = 'grpcio'
depends = ['six', 'futures', 'enum34']
recipe = GrpcioRecipe()
I saved the recipe as grcpio_recipes.sh
, put it in a folder called recipes and changed the buildozer.spec file to # (str) The directory in which python-for-android should look for your own build recipes (if any) p4a.local_recipes = .buildozer/python-for-android/recipes
However, I'm still getting the same error as before. Have I added the recipe to the right area - it doesn't seem like it's using my custom recipe.
from Kivy buildozer ImportError grpc custom recipe
No comments:
Post a Comment