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

Build Python3 for Android with Azure-keyvault and merest #828

Closed
mbrg opened this issue Feb 12, 2019 · 1 comment
Closed

Build Python3 for Android with Azure-keyvault and merest #828

mbrg opened this issue Feb 12, 2019 · 1 comment

Comments

@mbrg
Copy link

mbrg commented Feb 12, 2019

Versions

Description

Trying to build an Android APK with the following Python3 requirements: argparse, azure-keyvault, msrest, adal, keyring, pyperclip. Source code available here.
I'm using this docker image.

The APK builds successfully. But the app crashes on start and looking through logcat shows "no module named 'requests'.
I've tried following the instructions here, but this resulted in a similar crash on start. This time, logcat shows "no module named 'cryptography'".

buildozer.spec

Command:

buildozer android debug deploy run

Spec file:

[app]

# (str) Title of your application
title = Hush

# (str) Package name
package.name = hush

# (str) Package domain (needed for android/ios packaging)
package.domain = mibarg.hush

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas

version = 1.0

android.permissions = INTERNET

orientation = all

requirements = python3crystax,kivy,argparse,azure-keyvault,msrest,adal,keyring,pyperclip

android.ndk_path = /opt/crystax-ndk-10.3.2

[buildozer]
log_level = 2

Logs

logcat.txt

@AndreMiras
Copy link
Member

AndreMiras commented Feb 13, 2019

Yes then you need to explicitly put all the dependencies and sub-dependencies that're required by your app in your requirements.
Also note that you're using crystax which is not the recommended method anymore. Please use the pure python3 recipe
For further support requests I would recommend to use the support channel (e.g. chat or forum)

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

2 participants