尝试在Mac上构建Kivy buildozer时出错

时间:2020-09-12 12:41:02

标签: python android kivy buildozer

我在计算机上创建了一个虚拟环境,并按照https://github.com/attreyabhatt/Kivy-Pong-Game/blob/master/PingPong/KivyToAndroid.txt中所述的所有步骤进行操作 但是,我遇到了这个错误,经过大量研究和反复试验后,我将此问题放在这里。任何帮助将不胜感激。我运行buildozer -v android debug时的日志如下

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /Users/aloomba/opt/anaconda3/envs/my_app/bin/cython
# Search for Java compiler (javac)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
# Search for Java keytool (keytool)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
* master 1b3b0e3f [origin/master] Merge pull request #2225 from kivy/release-2020.06.02
# Run '/Users/aloomba/opt/anaconda3/envs/my_app/bin/python -m pip install -q  \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\''
# Cwd None
# Apache ANT found at /Users/aloomba/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /Users/aloomba/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /Users/aloomba/.buildozer/android/platform/android-ndk-r19c
# Check application requirements
# Check garden requirements
# Compile platform
...

[INFO]:    Unpacking openssl for armeabi-v7a
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21                                
[INFO]:    openssl is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni                                                      
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni                                                      
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni                                                      
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sqlite3 for armeabi-v7a
[INFO]:    -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sqlite3/armeabi-v7a__ndk_target_21                                
[INFO]:    sqlite3 is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking python3 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/python3/armeabi-v7a__ndk_target_21                                
[INFO]:    python3 is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni                                                      
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking setuptools for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-40.9.0.zip
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/setuptools/armeabi-v7a__ndk_target_21                             
[INFO]:    setuptools is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/six/armeabi-v7a__ndk_target_21                                    
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.2.1.zip
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21                           
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    -> running rm -rf /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    -> running cp -a /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/android/src /Users/aloomba/Library/P...(and 155 more)
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/1.11.1.zip
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/kivy/armeabi-v7a__ndk_target_21                                   
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython3 for armeabi-v7a
[INFO]:    hostpython3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for hostpython3[armeabi-v7a]
[INFO]:    hostpython3 already patched, skipping
[INFO]:    Prebuilding libffi for armeabi-v7a
[INFO]:    libffi has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for libffi[armeabi-v7a]
[INFO]:    libffi already patched, skipping
[INFO]:    Prebuilding openssl for armeabi-v7a
[INFO]:    openssl has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    sdl2_image already patched, skipping
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    sdl2_mixer already patched, skipping
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sqlite3 for armeabi-v7a
[INFO]:    sqlite3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python3 for armeabi-v7a
[INFO]:    python3 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python3[armeabi-v7a]
[INFO]:    python3 already patched, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding setuptools for armeabi-v7a
[INFO]:    setuptools has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    pyjnius already patched, skipping
[INFO]:    Prebuilding android for armeabi-v7a
[INFO]:    android has no prebuild_armeabi_v7a, skipping
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/android-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Prebuilding kivy for armeabi-v7a
[INFO]:    kivy has no prebuild_armeabi_v7a, skipping
[INFO]:    # Building recipes
[INFO]:    Building hostpython3 for armeabi-v7a
[INFO]:    hostpython3 said it is already built, skipping
[INFO]:    Building libffi for armeabi-v7a
[INFO]:    libffi said it is already built, skipping
[INFO]:    -> running cp /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21/libffi/.libs...(and 164 more)
[INFO]:    Building openssl for armeabi-v7a
[INFO]:    openssl said it is already built, skipping
[INFO]:    -> running cp /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1/...(and 360 more)
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building sqlite3 for armeabi-v7a
[INFO]:    sqlite3 said it is already built, skipping
[INFO]:    Building python3 for armeabi-v7a
[INFO]:    python3 said it is already built, skipping
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2/jni
[INFO]:    -> running ndk-build V=1 NDK_DEBUG=1
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android                                                                                     
[INFO]:    Building setuptools for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    setuptools said it is already built, skipping
[INFO]:    Building six for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    six said it is already built, skipping
[INFO]:    Building pyjnius for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    pyjnius said it is already built, skipping
[INFO]:    Building android for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    android said it is already built, skipping
[INFO]:    Building kivy for armeabi-v7a
[INFO]:    Python package already exists in site-packages
[INFO]:    kivy said it is already built, skipping
[INFO]:    # Biglinking object files
[WARNING]: Context's python recipe found, skipping biglink (will this work?)
[INFO]:    # Postbuilding recipes
[INFO]:    Postbuilding hostpython3 for armeabi-v7a
[INFO]:    Postbuilding libffi for armeabi-v7a
[INFO]:    Postbuilding openssl for armeabi-v7a
[INFO]:    Postbuilding sdl2_image for armeabi-v7a
[INFO]:    Postbuilding sdl2_mixer for armeabi-v7a
[INFO]:    Postbuilding sdl2_ttf for armeabi-v7a
[INFO]:    Postbuilding sqlite3 for armeabi-v7a
[INFO]:    Postbuilding python3 for armeabi-v7a
[INFO]:    Postbuilding sdl2 for armeabi-v7a
[INFO]:    Postbuilding setuptools for armeabi-v7a
[INFO]:    Postbuilding six for armeabi-v7a
[INFO]:    Postbuilding pyjnius for armeabi-v7a
[INFO]:    Copying pyjnius java class to classes build dir
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/pyjnius-sdl2/armeabi-v7a__ndk_target_21/pyjnius
[INFO]:    -> running cp -a jnius/src/org /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build/javaclasses/myapp
[INFO]:    <- directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android
[INFO]:    Postbuilding android for armeabi-v7a
[INFO]:    Postbuilding kivy for armeabi-v7a
[INFO]:    # Installing pure Python modules
[INFO]:    *** PYTHON PACKAGE / PROJECT INSTALL STAGE ***
[INFO]:    The requirements (certifi) don't have recipes, attempting to install them with pip
[INFO]:    If this fails, it may mean that the module has compiled components and needs a recipe.
[INFO]:    -> directory context /Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a/build
[INFO]:    -> running python3 -m venv venv
[INFO]:    Upgrade pip to latest version
[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                                                                                                                                                                
[INFO]:    -> running bash -c venv/bin/pip install Cython
Exception in thread background thread for pid 63364:                                                                                                                                                                                  
Traceback (most recent call last):
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/site-packages/sh.py", line 1633, in wrap
    fn(*rgs, **kwargs)
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/site-packages/sh.py", line 2557, in background_thread
    handle_exit_code(exit_code)
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/site-packages/sh.py", line 2261, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/site-packages/sh.py", line 861, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /usr/local/bin/bash -c 'venv/bin/pip install Cython'

  STDOUT:
Ignoring "sys._home = value" override
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting Cython
  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/
  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/
  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/
  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/
  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/
  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
  ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
ERROR: No matching distribution found for Cython
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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


  STDERR:


Traceback (most recent call last):
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1260, in <module>
    main()
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 709, in __init__
    getattr(self, command)(args)
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 216, in build_dist_from_args
    args, "ignore_setup_py", False
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 602, in build_recipes
    ignore_setup_py=ignore_project_setup_py
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 780, in run_pymodules_install
    ), _env=copy.copy(base_env))
  File "/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint
    for line in output:
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/site-packages/sh.py", line 907, in next
    self.wait()
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/site-packages/sh.py", line 837, in wait
    self.handle_command_exit_code(exit_code)
  File "/Users/aloomba/opt/anaconda3/envs/my_app/lib/python3.7/site-packages/sh.py", line 861, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /usr/local/bin/bash -c 'venv/bin/pip install Cython'

  STDOUT:
Ignoring "sys._home = value" override
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting Cython
  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/
  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/
  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/
  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/
  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/
  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
  ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
ERROR: No matching distribution found for Cython
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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


  STDERR:

# Command failed: /Users/aloomba/opt/anaconda3/envs/my_app/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,openssl --arch armeabi-v7a --copy-libs --color=always --storage-dir="/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
# ENVIRONMENT:
#     SHELL = '/usr/local/bin/bash'
#     XPC_FLAGS = '0x0'
#     CONDA_EXE = '/Users/aloomba/opt/anaconda3/bin/conda'
#     _CE_M = ''
#     TERMINAL_EMULATOR = 'JetBrains-JediTerm'
#     SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.zYyDA1wfm2/Listeners'
#     PWD = '/Users/aloomba/Library/Preferences/PyCharm2019.3/scratches/KivyApp'
#     LOGNAME = 'aloomba'
#     CONDA_PREFIX = '/Users/aloomba/opt/anaconda3/envs/my_app'
#     HOME = '/Users/aloomba'
#     CONDA_PROMPT_MODIFIER = '(my_app) '
#     TMPDIR = '/var/folders/z7/ksjn0z690nxc_nvtl391r4dw0000gn/T/'
#     TERM = 'xterm-256color'
#     _CE_CONDA = ''
#     USER = 'aloomba'
#     CONDA_SHLVL = '3'
#     SHLVL = '1'
#     XPC_SERVICE_NAME = '0'
#     CONDA_PYTHON_EXE = '/Users/aloomba/opt/anaconda3/bin/python'
#     LC_CTYPE = 'en_AU.UTF-8'
#     CONDA_DEFAULT_ENV = 'my_app'
#     PATH = '/Users/aloomba/.buildozer/android/platform/apache-ant-1.9.4/bin:/Users/aloomba/opt/anaconda3/envs/my_app/bin:/Users/aloomba/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/aloomba/opt/anaconda3/bin:/Users/aloomba/opt/anaconda3/condabin'
#     CONDA_PREFIX_1 = '/Users/aloomba/opt/anaconda3'
#     CONDA_PREFIX_2 = '/Users/aloomba/opt/anaconda3/envs/sandbox'
#     __CF_USER_TEXT_ENCODING = '0x1F5:0:15'
#     _ = '/Users/aloomba/opt/anaconda3/envs/my_app/bin/buildozer'
#     PACKAGES_PATH = '/Users/aloomba/.buildozer/android/packages'
#     ANDROIDSDK = '/Users/aloomba/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/Users/aloomba/.buildozer/android/platform/android-ndk-r19c'
#     ANDROIDAPI = '27'
#     ANDROIDMINAPI = '21'
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2

任何帮助将不胜感激。这是我第一次尝试从python创建apk,因此我一无所知。

0 个答案:

没有答案