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

[Docker image] SSLError("Can't connect to HTTPS URL because the SSL module is not available.") #1096

Closed
Sirfanas opened this issue May 11, 2020 · 8 comments · Fixed by #1099

Comments

@Sirfanas
Copy link
Contributor

Versions

  • Python: Docker image (python3.6)
  • OS: Docker image (FROM Ubuntu 18.04)
  • Buildozer: Latest build

Description

Just try to compile HelloWorld Kivy app

buildozer.spec

Command:

android debug deploy

Spec file:

[app]

# (str) Title of your application
title = My Application

# (str) Package name
package.name = myapp

# (str) Package domain (needed for android/ios packaging)
package.domain = org.test

# (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

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.1

# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy

# (list) Garden requirements
#garden_requirements =

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png

# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = portrait

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
# author = © Copyright Info

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 1.9.1

#
# Android specific
#

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0

# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF

# (list) Permissions
#android.permissions = INTERNET

# (int) Target Android API, should be as high as possible.
#android.api = 27

# (int) Minimum API your APK will support.
#android.minapi = 21

# (int) Android SDK version to use
#android.sdk = 20

# (str) Android NDK version to use
#android.ndk = 19b

# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
#android.ndk_api = 21

# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True

# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path =

# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path =

# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =

# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
# android.skip_update = False

# (bool) If True, then automatically accept SDK license
# agreements. This is intended for automation only. If set to False,
# the default, you will be shown the license when first running
# buildozer.
# android.accept_sdk_license = False

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (str) Android app theme, default is ok for Kivy-based app
# android.apptheme = "@android:style/Theme.NoTitleBar"

# (list) Pattern to whitelist for the whole project
#android.whitelist =

# (str) Path to a custom whitelist file
#android.whitelist_src =

# (str) Path to a custom blacklist file
#android.blacklist_src =

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =

# (list) Android AAR archives to add (currently works only with sdl2_gradle
# bootstrap)
#android.add_aars =

# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
#android.gradle_dependencies =

# (list) add java compile options
# this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
# see https://developer.android.com/studio/write/java8-support for further information
# android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"

# (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
# please enclose in double quotes
# e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
#android.add_gradle_repositories =

# (list) packaging options to add
# see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
# can be necessary to solve conflicts in gradle_dependencies
# please enclose in double quotes
# e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
#android.add_gradle_repositories =

# (list) Java classes to add as activities to the manifest.
#android.add_activities = com.example.ExampleActivity

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_arm64_v8a = libs/android-v8/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

# (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
#android.uses_library =

# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D

# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
android.arch = armeabi-v7a

#
# Python for android (p4a) specific
#

# (str) python-for-android fork to use, defaults to upstream (kivy)
#p4a.fork = kivy

# (str) python-for-android branch to use, defaults to master
#p4a.branch = master

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir =

# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =

# (str) Filename to the hook for p4a
#p4a.hook =

# (str) Bootstrap to use for android builds
# p4a.bootstrap = sdl2

# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
#p4a.port =


#
# iOS specific
#

# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# Alternately, specify the URL and branch of a git checkout:
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master

# Another platform dependency: ios-deploy
# Uncomment to use a custom checkout
#ios.ios_deploy_dir = ../ios_deploy
# Or specify URL and branch
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.7.0

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s


[buildozer]

# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2

# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 1

# (str) Path to build artifact storage, absolute or relative to spec file
build_dir = ./.buildozer

# (str) Path to build output (i.e. .apk, .ipa) storage
# bin_dir = ./bin

#    -----------------------------------------------------------------------------
#    List as sections
#
#    You can define all the "list" as [section:key].
#    Each line will be considered as a option to the list.
#    Let's take [app] / source.exclude_patterns.
#    Instead of doing:
#
#[app]
#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
#    This can be translated into:
#
#[app:source.exclude_patterns]
#license
#data/audio/*.wav
#data/images/original/*
#


#    -----------------------------------------------------------------------------
#    Profiles
#
#    You can extend section / key with a profile
#    For example, you want to deploy a demo version of your application without
#    HD content. You could first change the title to add "(demo)" in the name
#    and extend the excluded directories to remove the HD content.
#
#[app@demo]
#title = My Application (demo)
#
#[app:source.exclude_patterns@demo]
#images/hd/*
#
#    Then, invoke the command line with the "demo" profile:
#
#buildozer --profile demo android debug

Logs

buildozer_1          | # Check configuration tokens
buildozer_1          | # Ensure build layout
buildozer_1          | # Check configuration tokens
buildozer_1          | # Preparing build
buildozer_1          | # Check requirements for android
buildozer_1          | # Run 'dpkg --version'
buildozer_1          | # Cwd None
buildozer_1          | Debian 'dpkg' package management program version 1.19.0.5 (amd64).
buildozer_1          | This is free software; see the GNU General Public License version 2 or
buildozer_1          | later for copying conditions. There is NO warranty.
buildozer_1          | # Search for Git (git)
buildozer_1          | #  -> found at /usr/bin/git
buildozer_1          | # Search for Cython (cython)
buildozer_1          | #  -> found at /home/user/.local/bin/cython
buildozer_1          | # Search for Java compiler (javac)
buildozer_1          | #  -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
buildozer_1          | # Search for Java keytool (keytool)
buildozer_1          | #  -> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytool
buildozer_1          | # Install platform
buildozer_1          | # Run 'git config --get remote.origin.url'
buildozer_1          | # Cwd /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | https://github.com/kivy/python-for-android.git
buildozer_1          | # Run 'git branch -vv'
buildozer_1          | # Cwd /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | * master 17dfa6a0 [origin/master] Merge pull request #2174 from kivy/release-2020.04.29
buildozer_1          | # Run '/usr/bin/python3 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\''
buildozer_1          | # Cwd None
try_build_buildozer-chowner_1 exited with code 0
buildozer_1          | # Apache ANT found at /home/user/.buildozer/android/platform/apache-ant-1.9.4
buildozer_1          | # Android SDK found at /home/user/.buildozer/android/platform/android-sdk
buildozer_1          | # Recommended android's NDK version by p4a is: 19c
buildozer_1          | # Android NDK found at /home/user/.buildozer/android/platform/android-ndk-r19c
buildozer_1          | # Check application requirements
buildozer_1          | # Check garden requirements
buildozer_1          | # Compile platform
buildozer_1          | # Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/user/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21'
buildozer_1          | # Cwd /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Will compile for the following archs: armeabi-v7a
buildozer_1          | [INFO]:    Found Android API target in $ANDROIDAPI: 27
buildozer_1          | [INFO]:    Available Android APIs are (27)
buildozer_1          | [INFO]:    Requested API target 27 is available, continuing.
buildozer_1          | [INFO]:    Found NDK dir in $ANDROIDNDK: /home/user/.buildozer/android/platform/android-ndk-r19c
buildozer_1          | [INFO]:    Found NDK version 19c
buildozer_1          | [INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
buildozer_1          | [INFO]:    Found the following toolchain versions: ['4.9']
buildozer_1          | [INFO]:    Picking the latest gcc toolchain, here 4.9
buildozer_1          | [INFO]:    No existing dists meet the given requirements!
buildozer_1          | [INFO]:    No dist exists that meets your requirements, so one will be built.
buildozer_1          | [INFO]:    Found a single valid recipe set: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
buildozer_1          | [INFO]:    The selected bootstrap is sdl2
buildozer_1          | [INFO]:    # Creating dist with sdl2 bootstrap
buildozer_1          | [INFO]:    Dist will have name myapp and requirements (python3, kivy)
buildozer_1          | [INFO]:    Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
buildozer_1          | [INFO]:    Dist will also contain modules (certifi) installed from pip
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
buildozer_1          | [INFO]:    The requirements (certifi) were not found as recipes, they will be installed with pip.
buildozer_1          | [INFO]:    # Downloading recipes 
buildozer_1          | [INFO]:    Downloading hostpython3
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 36 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/hostpython3
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    hostpython3 download already cached, skipping                                           
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading libffi
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 31 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/libffi
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://github.com/libffi/libffi/archive/8fa8837.tar.gz
[INFO]:    libffi download already cached, skipping                                                
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading openssl
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 32 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/openssl
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]:    openssl download already cached, skipping                                               
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading sdl2_image
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 35 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_image
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image...(and 32 more)
[INFO]:    sdl2_image download already cached, skipping                                            
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading sdl2_mixer
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 35 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_mixer
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer...(and 32 more)
[INFO]:    sdl2_mixer download already cached, skipping                                            
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading sdl2_ttf
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 33 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_ttf
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/re...(and 28 more)
[INFO]:    sdl2_ttf download already cached, skipping                                              
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading sqlite3
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 32 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/sqlite3
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    sqlite3 download already cached, skipping                                               
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading python3
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 32 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/python3
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    python3 download already cached, skipping                                               
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading sdl2
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bui...(and 28 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    sdl2 download already cached, skipping                                                  
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading setuptools
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 35 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/setuptools
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://pypi.python.org/packages/source/s...(and 33 more)
[INFO]:    setuptools download already cached, skipping                                            
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading six
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bui...(and 27 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/six
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://pypi.python.org/packages/source/s/...(and 21 more)
[INFO]:    six download already cached, skipping                                                   
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading pyjnius
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bu...(and 32 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/pyjnius
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.2.1.zip
[INFO]:    pyjnius download already cached, skipping                                               
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Downloading android
buildozer_1          | [INFO]:    Skipping android download as no URL is set
buildozer_1          | [INFO]:    Downloading kivy
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running mkdir -p /home/user/.buildozer/android/platform/bui...(and 28 more)
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/packages/kivy
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.11.1.zip
[INFO]:    kivy download already cached, skipping                                                  
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    # Building all recipes for arch armeabi-v7a
buildozer_1          | [INFO]:    # Unpacking recipes
buildozer_1          | [INFO]:    Unpacking hostpython3 for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/hostpython3/desktop
buildozer_1          | [INFO]:    hostpython3 is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking libffi for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://github.com/libffi/libffi/archive/8fa8837.tar.gz
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    libffi is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking openssl for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    openssl is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking sdl2_image for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image...(and 32 more)
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
buildozer_1          | [INFO]:    sdl2_image is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking sdl2_mixer for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer...(and 32 more)
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
buildozer_1          | [INFO]:    sdl2_mixer is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking sdl2_ttf for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/re...(and 28 more)
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
buildozer_1          | [INFO]:    sdl2_ttf is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking sqlite3 for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    sqlite3 is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking python3 for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    python3 is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking sdl2 for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
buildozer_1          | [INFO]:    sdl2 is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking setuptools for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://pypi.python.org/packages/source/s...(and 33 more)
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/setuptools/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    setuptools is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking six for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://pypi.python.org/packages/source/s/...(and 21 more)
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/six/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    six is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Unpacking pyjnius for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.2.1.zip
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    pyjnius is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running rm -rf /home/user/.buildozer/android/platform/buil...(and 80 more)
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running cp -a /home/user/.buildozer/android/platform/pytho...(and 174 more)
buildozer_1          | [INFO]:    Unpacking kivy for armeabi-v7a
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.11.1.zip
[INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21
buildozer_1          | [INFO]:    kivy is already unpacked, skipping
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    # Prebuilding recipes
buildozer_1          | [INFO]:    Prebuilding hostpython3 for armeabi-v7a
buildozer_1          | [INFO]:    hostpython3 has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Prebuilding libffi for armeabi-v7a
buildozer_1          | [INFO]:    libffi has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Applying patches for libffi[armeabi-v7a]
buildozer_1          | [INFO]:    libffi already patched, skipping
buildozer_1          | [INFO]:    Prebuilding openssl for armeabi-v7a
buildozer_1          | [INFO]:    openssl has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Prebuilding sdl2_image for armeabi-v7a
buildozer_1          | [INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Applying patches for sdl2_image[armeabi-v7a]
buildozer_1          | [INFO]:    sdl2_image already patched, skipping
buildozer_1          | [INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
buildozer_1          | [INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
buildozer_1          | [INFO]:    sdl2_mixer already patched, skipping
buildozer_1          | [INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
buildozer_1          | [INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Prebuilding sqlite3 for armeabi-v7a
buildozer_1          | [INFO]:    sqlite3 has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Prebuilding python3 for armeabi-v7a
buildozer_1          | [INFO]:    python3 has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Applying patches for python3[armeabi-v7a]
buildozer_1          | [INFO]:    python3 already patched, skipping
buildozer_1          | [INFO]:    Prebuilding sdl2 for armeabi-v7a
buildozer_1          | [INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Prebuilding setuptools for armeabi-v7a
buildozer_1          | [INFO]:    setuptools has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Prebuilding six for armeabi-v7a
buildozer_1          | [INFO]:    six has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Prebuilding pyjnius for armeabi-v7a
buildozer_1          | [INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    Applying patches for pyjnius[armeabi-v7a]
buildozer_1          | [INFO]:    pyjnius already patched, skipping
buildozer_1          | [INFO]:    Prebuilding android for armeabi-v7a
buildozer_1          | [INFO]:    android has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Prebuilding kivy for armeabi-v7a
buildozer_1          | [INFO]:    kivy has no prebuild_armeabi_v7a, skipping
buildozer_1          | [INFO]:    # Building recipes
buildozer_1          | [INFO]:    Building hostpython3 for armeabi-v7a
buildozer_1          | [INFO]:    hostpython3 said it is already built, skipping
buildozer_1          | [INFO]:    Building libffi for armeabi-v7a
buildozer_1          | [INFO]:    libffi said it is already built, skipping
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running cp /home/user/.buildozer/android/platform/build-ar...(and 183 more)
buildozer_1          | [INFO]:    Building openssl for armeabi-v7a
buildozer_1          | [INFO]:    openssl said it is already built, skipping
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running cp /home/user/.buildozer/android/platform/build-ar...(and 323 more)
buildozer_1          | [INFO]:    Building sdl2_image for armeabi-v7a
buildozer_1          | [INFO]:    Building sdl2_mixer for armeabi-v7a
buildozer_1          | [INFO]:    Building sdl2_ttf for armeabi-v7a
buildozer_1          | [INFO]:    Building sqlite3 for armeabi-v7a
buildozer_1          | [INFO]:    sqlite3 said it is already built, skipping
buildozer_1          | [INFO]:    Building python3 for armeabi-v7a
buildozer_1          | [INFO]:    python3 said it is already built, skipping
buildozer_1          | [INFO]:    Building sdl2 for armeabi-v7a
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running ndk-build V=1 NDK_DEBUG=1
[INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android          
buildozer_1          | [INFO]:    Building setuptools for armeabi-v7a
buildozer_1          | [INFO]:    Python package already exists in site-packages
buildozer_1          | [INFO]:    setuptools said it is already built, skipping
buildozer_1          | [INFO]:    Building six for armeabi-v7a
buildozer_1          | [INFO]:    Python package already exists in site-packages
buildozer_1          | [INFO]:    six said it is already built, skipping
buildozer_1          | [INFO]:    Building pyjnius for armeabi-v7a
buildozer_1          | [INFO]:    Python package already exists in site-packages
buildozer_1          | [INFO]:    pyjnius said it is already built, skipping
buildozer_1          | [INFO]:    Building android for armeabi-v7a
buildozer_1          | [INFO]:    Python package already exists in site-packages
buildozer_1          | [INFO]:    android said it is already built, skipping
buildozer_1          | [INFO]:    Building kivy for armeabi-v7a
buildozer_1          | [INFO]:    Python package already exists in site-packages
buildozer_1          | [INFO]:    kivy said it is already built, skipping
buildozer_1          | [INFO]:    # Biglinking object files
buildozer_1          | [WARNING]: Context's python recipe found, skipping biglink (will this work?)
buildozer_1          | [INFO]:    # Postbuilding recipes
buildozer_1          | [INFO]:    Postbuilding hostpython3 for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding libffi for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding openssl for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding sdl2_image for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding sdl2_mixer for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding sdl2_ttf for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding sqlite3 for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding python3 for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding sdl2 for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding setuptools for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding six for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding pyjnius for armeabi-v7a
buildozer_1          | [INFO]:    Copying pyjnius java class to classes build dir
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running cp -a jnius/src/org /home/user/.buildozer/android/...(and 50 more)
buildozer_1          | [INFO]:    <- directory context /home/user/.buildozer/android/platform/python-for-android
buildozer_1          | [INFO]:    Postbuilding android for armeabi-v7a
buildozer_1          | [INFO]:    Postbuilding kivy for armeabi-v7a
buildozer_1          | [INFO]:    # Installing pure Python modules
buildozer_1          | [INFO]:    *** PYTHON PACKAGE / PROJECT INSTALL STAGE ***
buildozer_1          | [INFO]:    The requirements (certifi) don't have recipes, attempting to install them with pip
buildozer_1          | [INFO]:    If this fails, it may mean that the module has compiled components and needs a recipe.
buildozer_1          | [INFO]:    -> directory context /home/user/.buildozer/android/platform/build-armeabi-v7a/build
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running python3 -m venv venv
buildozer_1          | [INFO]:    Upgrade pip to latest version
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running bash -c source venv/bin/activate && pip install -U pip
[INFO]:    Install Cython in case one of the modules needs it to build                             
buildozer_1          | stty: 'standard input': Inappropriate ioctl for device
buildozer_1          | [INFO]:    -> running bash -c venv/bin/pip install Cython
Exception in thread background thread for pid 1725:                                                
buildozer_1          | Traceback (most recent call last):
buildozer_1          |   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
buildozer_1          |     self.run()
buildozer_1          |   File "/usr/lib/python3.6/threading.py", line 864, in run
buildozer_1          |     self._target(*self._args, **self._kwargs)
buildozer_1          |   File "/home/user/.local/lib/python3.6/site-packages/sh.py", line 1662, in wrap
buildozer_1          |     fn(*args, **kwargs)
buildozer_1          |   File "/home/user/.local/lib/python3.6/site-packages/sh.py", line 2606, in background_thread
buildozer_1          |     handle_exit_code(exit_code)
buildozer_1          |   File "/home/user/.local/lib/python3.6/site-packages/sh.py", line 2304, in fn
buildozer_1          |     return self.command.handle_command_exit_code(exit_code)
buildozer_1          |   File "/home/user/.local/lib/python3.6/site-packages/sh.py", line 877, in handle_command_exit_code
buildozer_1          |     raise exc
buildozer_1          | sh.ErrorReturnCode_1: 
buildozer_1          | 
buildozer_1          |   RAN: /bin/bash -c 'venv/bin/pip install Cython'
buildozer_1          | 
buildozer_1          |   STDOUT:
buildozer_1          | Ignoring "sys._home = value" override
buildozer_1          | WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
buildozer_1          | Collecting Cython
buildozer_1          |   WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   Could not fetch URL https://pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
buildozer_1          |   ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
buildozer_1          | ERROR: No matching distribution found for Cython
buildozer_1          | WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
buildozer_1          | Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
buildozer_1          | 
buildozer_1          | 
buildozer_1          |   STDERR:
buildozer_1          | 
buildozer_1          | 
buildozer_1          | Traceback (most recent call last):
buildozer_1          |   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
buildozer_1          |     "__main__", mod_spec)
buildozer_1          |   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
buildozer_1          |     exec(code, run_globals)
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1231, in <module>
buildozer_1          |     main()
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
buildozer_1          |     ToolchainCL()
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 688, in __init__
buildozer_1          |     getattr(self, command)(args)
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func
buildozer_1          |     build_dist_from_args(ctx, dist, args)
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 208, in build_dist_from_args
buildozer_1          |     args, "ignore_setup_py", False
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 598, in build_recipes
buildozer_1          |     ignore_setup_py=ignore_project_setup_py
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 778, in run_pymodules_install
buildozer_1          |     ), _env=copy.copy(base_env))
buildozer_1          |   File "/home/user/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
buildozer_1          |     for line in output:
buildozer_1          |   File "/home/user/.local/lib/python3.6/site-packages/sh.py", line 925, in next
buildozer_1          |     self.wait()
buildozer_1          |   File "/home/user/.local/lib/python3.6/site-packages/sh.py", line 849, in wait
buildozer_1          |     self.handle_command_exit_code(exit_code)
buildozer_1          |   File "/home/user/.local/lib/python3.6/site-packages/sh.py", line 877, in handle_command_exit_code
buildozer_1          |     raise exc
buildozer_1          | sh.ErrorReturnCode_1: 
buildozer_1          | 
buildozer_1          |   RAN: /bin/bash -c 'venv/bin/pip install Cython'
buildozer_1          | 
buildozer_1          |   STDOUT:
buildozer_1          | Ignoring "sys._home = value" override
buildozer_1          | WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
buildozer_1          | Collecting Cython
buildozer_1          |   WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/cython/
buildozer_1          |   Could not fetch URL https://pypi.org/simple/cython/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/cython/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
buildozer_1          |   ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
buildozer_1          | ERROR: No matching distribution found for Cython
buildozer_1          | WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
buildozer_1          | Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
buildozer_1          | 
buildozer_1          | 
buildozer_1          |   STDERR:
buildozer_1          | 
buildozer_1          | # Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/user/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
buildozer_1          | # ENVIRONMENT:
buildozer_1          | #     PATH = '/home/user/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
buildozer_1          | #     HOSTNAME = 'dbf435365b27'
buildozer_1          | #     USER = 'user'
buildozer_1          | #     HOME_DIR = '/home/user'
buildozer_1          | #     WORK_DIR = '/home/user/hostcwd'
buildozer_1          | #     SRC_DIR = '/home/user/src'
buildozer_1          | #     LANG = 'en_US.UTF-8'
buildozer_1          | #     LANGUAGE = 'en_US.UTF-8'
buildozer_1          | #     LC_ALL = 'en_US.UTF-8'
buildozer_1          | #     HOME = '/home/user'
buildozer_1          | #     PACKAGES_PATH = '/home/user/.buildozer/android/packages'
buildozer_1          | #     ANDROIDSDK = '/home/user/.buildozer/android/platform/android-sdk'
buildozer_1          | #     ANDROIDNDK = '/home/user/.buildozer/android/platform/android-ndk-r19c'
buildozer_1          | #     ANDROIDAPI = '27'
buildozer_1          | #     ANDROIDMINAPI = '21'
buildozer_1          | # 
buildozer_1          | # Buildozer failed to execute the last command
buildozer_1          | # The error might be hidden in the log above this error
buildozer_1          | # Please read the full log, and search for it before
buildozer_1          | # raising an issue with buildozer itself.
buildozer_1          | # In case of a bug report, please add a full log with log_level = 2
@Sirfanas
Copy link
Contributor Author

This sound like #1095 but I can't fix this.
I already try to install libssl-dev and pyopenssl in the Dockerfile but nothing change
I also try to remove every data and restart compilation but doesn't fix it

@AndreMiras
Copy link
Member

Nice if you have a Dockerfile that reproduce your issue, please share it

@Sirfanas
Copy link
Contributor Author

yes, just take the current master file:

# Dockerfile for providing buildozer
#
# Build with:
# docker build --tag=kivy/buildozer .
# 
# In order to give the container access to your current working directory
# it must be mounted using the --volume option.
# Run with (e.g. `buildozer --version`):
# docker run \
#   --volume "$HOME/.buildozer":/home/user/.buildozer \
#   --volume "$PWD":/home/user/hostcwd \
#   kivy/buildozer --version
#
# Or for interactive shell:
# docker run --interactive --tty --rm \
#   --volume "$HOME/.buildozer":/home/user/.buildozer \
#   --volume "$PWD":/home/user/hostcwd \
#   --entrypoint /bin/bash \
#   kivy/buildozer
#
# If you get a `PermissionError` on `/home/user/.buildozer/cache`,
# try updating the permissions from the host with:
# sudo chown $USER -R ~/.buildozer
# Or simply recreate the directory from the host with:
# rm -rf ~/.buildozer && mkdir ~/.buildozer

FROM ubuntu:18.04

ENV USER="user"
ENV HOME_DIR="/home/${USER}"
ENV WORK_DIR="${HOME_DIR}/hostcwd" \
    SRC_DIR="${HOME_DIR}/src" \
    PATH="${HOME_DIR}/.local/bin:${PATH}"

# configures locale
RUN apt update -qq > /dev/null && \
    apt install -qq --yes --no-install-recommends \
    locales && \
    locale-gen en_US.UTF-8
ENV LANG="en_US.UTF-8" \
    LANGUAGE="en_US.UTF-8" \
    LC_ALL="en_US.UTF-8"

# system requirements to build most of the recipes
RUN apt install -qq --yes --no-install-recommends \
    autoconf \
    automake \
    build-essential \
    ccache \
    cmake \
    gettext \
    git \
    libffi-dev \
    libltdl-dev \
    libtool \
    openjdk-8-jdk \
    patch \
    pkg-config \
    python2.7 \
    python3-pip \
    python3-setuptools \
    sudo \
    unzip \
    zip \
    zlib1g-dev

# prepares non root env
RUN useradd --create-home --shell /bin/bash ${USER}
# with sudo access and no password
RUN usermod -append --groups sudo ${USER}
RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

USER ${USER}
WORKDIR ${WORK_DIR}
COPY --chown=user:user . ${SRC_DIR}

# installs buildozer and dependencies
RUN pip3 install --user --upgrade Cython==0.28.6 wheel pip virtualenv ${SRC_DIR}

ENTRYPOINT ["buildozer"]

Here's my custom one with libssl-dev and pyopenssl (not working too)

# Dockerfile for providing buildozer
#
# Build with:
# docker build --tag=kivy/buildozer .
# 
# In order to give the container access to your current working directory
# it must be mounted using the --volume option.
# Run with (e.g. `buildozer --version`):
# docker run \
#   --volume "$HOME/.buildozer":/home/user/.buildozer \
#   --volume "$PWD":/home/user/hostcwd \
#   kivy/buildozer --version
#
# Or for interactive shell:
# docker run --interactive --tty --rm \
#   --volume "$HOME/.buildozer":/home/user/.buildozer \
#   --volume "$PWD":/home/user/hostcwd \
#   --entrypoint /bin/bash \
#   kivy/buildozer
#
# If you get a `PermissionError` on `/home/user/.buildozer/cache`,
# try updating the permissions from the host with:
# sudo chown $USER -R ~/.buildozer
# Or simply recreate the directory from the host with:
# rm -rf ~/.buildozer && mkdir ~/.buildozer

FROM ubuntu:18.04

ENV USER="user"
ENV HOME_DIR="/home/${USER}"
ENV WORK_DIR="${HOME_DIR}/hostcwd" \
    SRC_DIR="${HOME_DIR}/src" \
    PATH="${HOME_DIR}/.local/bin:${PATH}"

# configures locale
RUN apt update -qq > /dev/null && \
    apt install -qq --yes --no-install-recommends \
    locales && \
    locale-gen en_US.UTF-8
ENV LANG="en_US.UTF-8" \
    LANGUAGE="en_US.UTF-8" \
    LC_ALL="en_US.UTF-8"

# system requirements to build most of the recipes
RUN apt install -qq --yes --no-install-recommends \
    autoconf \
    automake \
    build-essential \
    ccache \
    cmake \
    gettext \
    git \
    libssl-dev \
    libffi-dev \
    libltdl-dev \
    libtool \
    openjdk-8-jdk \
    patch \
    pkg-config \
    python2.7 \
    python3-pip \
    python3-setuptools \
    sudo \
    unzip \
    zip \
    zlib1g-dev

# prepares non root env
RUN useradd --create-home --shell /bin/bash ${USER}
# with sudo access and no password
RUN usermod -append --groups sudo ${USER}
RUN echo "%sudo ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

USER ${USER}
WORKDIR ${WORK_DIR}
COPY --chown=user:user . ${SRC_DIR}

# installs buildozer and dependencies
RUN pip3 install --user --upgrade Cython==0.28.6 wheel pip virtualenv pyopenssl ${SRC_DIR}

ENTRYPOINT ["buildozer"]

@AndreMiras
Copy link
Member

AndreMiras commented May 11, 2020

Good news I would say as I was able to reproduce too with that Dockerfile 👍
It must be another dependency that we miss. That's new actually, I will look into it later then.
Edit 1:
Actually yes this is expected as our docker image didn't have libssl-dev indeed. We don't fully integration test on this one because it takes too long and it's already done on p4a side.
Anyway I'll give it a try on clean build with this dependency.
In the meantime please share your hostpython3 configure log: .buildozer/android/platform/build-*/build/other_builds/hostpython3/desktop/hostpython3/native-build/config.log

@AndreMiras
Copy link
Member

I confirm it's working by simply adding libssl-dev and doing a buildozer android clean before rebuilding again after. I could verify that one the Dockerfile just adding libssl-dev. I'll pull request to add that dependency by default.
Something didn't go well with your clean command probably. Please share the logs I mentioned above

@Sirfanas
Copy link
Contributor Author

Ok, I found what's wrong:
Adding libssl-dev did work
But as you said, my clean command didn't work well, I was missing some deps, I already made an issue at #1097 and I add a PR #1098
So after adding both libssl-dev and requirements I add in the #1098 this works great ! 🎉
Let you close this with a libssl-dev PR so ?

@AndreMiras
Copy link
Member

Yes exactly, I have the code for the PR ready, but I also wanted to integration test on top. Thing is it would conflict with another one of my PR. So I was waiting to submit it. But yes fuck it I'll do the PR at least partly

AndreMiras added a commit to AndreMiras/buildozer that referenced this issue May 11, 2020
This is required for the minimal build, closes kivy#1096
Integration test will come after kivy#1093 is merged
AndreMiras added a commit to AndreMiras/buildozer that referenced this issue May 11, 2020
This is required for the minimal build, closes kivy#1096
Integration test will come after kivy#1093 is merged
AndreMiras added a commit to AndreMiras/buildozer that referenced this issue May 11, 2020
This is required for the minimal build, closes kivy#1096
Also drops Python 2 dependency.
Integration test will come after kivy#1093 is merged
@SivaramNalliboyana
Copy link

Hi andre, I have the same issue. Where can I find the dockerfile

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

Successfully merging a pull request may close this issue.

3 participants