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

buildozer does not build recipes before pip-installing plain-python packages when targeting iOS #1577

Open
dvjdjvu opened this issue Mar 10, 2023 · 7 comments

Comments

@dvjdjvu
Copy link

dvjdjvu commented Mar 10, 2023

Versions

  • Python: 3.11.2
  • OS: mac OS Ventura 13
  • Buildozer: 1.5.0

Description

I try to build test project, but in mac OS /bin/false in /usr/bin/false. And I can't create link, because file system read only.

buildozer.spec

Command:

buildozer ios debug

Spec file:

[app]

# (str) Title of your application
title = Intercom

# (str) Package name
package.name = intercom

# (str) Package domain (needed for android/ios packaging)
package.domain = com.intercom

## run-as com.intercom.intercom

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

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,jpeg,ttf,kv,mp3,so,xml,mo
#,so,2,6,2,1,a

source.include_patterns = img/*, font/*, ui/*, music/*, data/locales/en/LC_MESSAGES/*, data/locales/ru/LC_MESSAGES/*

# (list) Application version
version = 0.1.5

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
#requirements = python3, kivy==2.1.0, Cython, jnius, pyVoIP, git+https://github.com/kivy/python-for-android.git, sh, colorama, git+https://github.com/kivy/audiostream.git
requirements = python3,
               hostpython3,
               kivy-ios,
               kivymd,
               oscpy,
               python-osc,
               phonenumbers,
               requests,
               urllib3,
               chardet,
               charset_normalizer,
               idna,
               #Cython,
               #jnius,
               Pillow,
               #camera4kivy,
               #gestures4kivy,
               https://github.com/kivy/plyer/archive/refs/heads/master.zip,
               libiconv,
               libzbar,
               pyzbar,
               xcamera


# git+https://github.com/kivy/audiostream.git
#baresipy, pexpect, ptyprocess, opentone, responsivevoice, requests, urllib3, charset-normalizer, idna, pydub, ffmpeg
#, git+https://github.com/dvjdjvu/pyVoIP
# git+https://github.com/kivy-garden/xcamera.git

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

# (str) Presplash of the application
presplash.filename = %(source.dir)s/img/loading.png
android.presplash_color = #FFAA05

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

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

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

# NAME_SERVICE:PATH_TO_PY
# (list) List of service to declare
# Not use %(source.dir)s
services = Intercom:./service.py:foreground

#
# Android specific
#

# (list) Permissions
android.permissions = INTERNET \
                      CAMERA \
                      RECORD_AUDIO \
                      CAPTURE_AUDIO_OUTPUT \
                      USE_SIP \
                      CONFIGURE_SIP \
                      MODIFY_AUDIO_SETTINGS \
                      PROCESS_OUTGOING_CALLS \
                      WRITE_SETTINGS \
                      READ_PHONE_STATE \
                      ACCESS_WIFI_STATE \
                      ACCESS_NETWORK_STATE \
                      WAKE_LOCK \
                      VIBRATE \
                      READ_LOGS \
                      WRITE_EXTERNAL_STORAGE \
                      READ_MEDIA_AUDIO \
                      FOREGROUND_SERVICE \
                      RECEIVE_BOOT_COMPLETED \
                      QUICKBOOT_POWERON \
                      BIND_JOB_SERVICE
                      #CALL_PHONE \


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

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

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

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

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

#android.gradle_dependencies = 'de.d0pam1n:pjsip-for-android:2.6'

#android.add_jars = %(source.dir)s/java_lib/AJVoIP.jar
#android.add_aars = %(source.dir)s/libs_lib/*.aar

# (list) Android additionnal libraries to copy into libs/armeabi
android.add_src = %(source.dir)s/java_src
android.add_libs_arm64_v8a = %(source.dir)s/libs/libs_arm64_v8a/*.*
android.add_libs_armeabi_v7a = %(source.dir)s/libs/libs_armeabi-v7a/*.*
#android.library_references = /home/djvu/workspace/intercom/phone/libs/libs_arm64_v8a/*.*

#android.copy_libs = 1

# правила сохранения настроек приложения (в случае переустановке)
android.allow_backup = True
android.backup_rules = %(source.dir)s/xml/backup.xml

#android.manifest.intent_filters = %(source.dir)s/xml/intent_filters.xml
#android.extra_manifest_xml = %(source.dir)s/xml/intent_filters.xml
android.extra_manifest_application = %(source.dir)s/xml/receivers.xml
#android.extra_manifest_application = %(source.dir)s/xml/intent_filters.xml
#android.extra_manifest_application_arguments = %(source.dir)s/xml/intent_filters.xml

#android.release_artifact = aab # aab or apk
# В каком формате собрать выходной пакет
android.release_artifact = apk

#
# iOS specific
#

# 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

ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = master

# (bool) Whether or not to sign the code
ios.codesign.allowed = false

[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 = 0

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

# (str) Filename to the hook for p4a
#p4a.hook = camerax_provider/gradle_options.py

Logs

      Updated build/lib.macosx-13-x86_64-cpython-311/kivy/include/config.h
      Updated /private/tmp/pip-install-8f41mdg7/kivy_aa8dceb766c346d39ad112f180a3fa3a/kivy/include/config.h
      Updated build/lib.macosx-13-x86_64-cpython-311/kivy/include/config.pxi
      Updated /private/tmp/pip-install-8f41mdg7/kivy_aa8dceb766c346d39ad112f180a3fa3a/kivy/include/config.pxi
      Updated build/lib.macosx-13-x86_64-cpython-311/kivy/setupconfig.py
      Updated /private/tmp/pip-install-8f41mdg7/kivy_aa8dceb766c346d39ad112f180a3fa3a/kivy/setupconfig.py
      Detected compiler is unix
       error: command '/bin/false' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for kivy
Failed to build kivy
ERROR: Could not build wheels for kivy, which is required to install pyproject.toml-based projects

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
# Command failed: ['pip', 'install', '--target=/Users/djvu/workspace/test/phone/.buildozer/applibs', 'kivymd']
# ENVIRONMENT:
#     VIRTUAL_ENV = '/Users/djvu/workspace/test/phone/.buildozer/venv'
#     PATH = '/Users/djvu/workspace/test/phone/.buildozer/venv/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin'
#     CC = '/bin/false'
#     CXX = '/bin/false'
# 
# 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
@misl6
Copy link
Member

misl6 commented Mar 11, 2023

Hi @dvjdjvu , can you please post the full log?

@dvjdjvu
Copy link
Author

dvjdjvu commented Mar 11, 2023

Hi @misl6, of course.

Mac-djvu:phone djvu$ buildozer ios debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for ios
# Search for Xcode xcodebuild
#  -> found at /usr/bin/xcodebuild
# Search for Xcode xcode-select
#  -> found at /usr/bin/xcode-select
# Search for Git git
#  -> found at /usr/bin/git
# Search for Cython cython
#  -> found at /usr/local/bin/cython
# Search for pkg-config
#  -> found at /usr/local/Cellar/pkg-config/0.29.2_3/bin/pkg-config
# Search for autoconf
#  -> found at /usr/local/Cellar/autoconf/2.71/bin/autoconf
# Search for automake
#  -> found at /usr/local/Cellar/automake/1.16.5/bin/automake
# Search for libtool
#  -> found at /usr/bin/libtool
# Check availability of a iPhone SDK
# Run 'xcodebuild -showsdks | fgrep "iphoneos" |tail -n 1 | awk \'{print $2}\''
# Cwd None
16.2
#  -> found '16.2\n'
# Check Xcode path
# Run ['xcode-select', '-print-path']
# Cwd None
/Applications/Xcode.app/Contents/Developer
#  -> found /Applications/Xcode.app/Contents/Developer

# Install platform
# Check application requirements
# Run ['/usr/local/opt/[email protected]/bin/python3.11', 'toolchain.py', 'recipes', '--compact']
# Cwd /Users/djvu/workspace/intercom/phone/.buildozer/ios/platform/kivy-ios
[DEBUG   ] Using selector: KqueueSelector
audiostream click curly cymunk ffmpeg ffpyplayer flask freetype hostopenssl hostpython3 ios itsdangerous jinja2 kivent_core kivy libcurl libffi libjpeg libpng libzbar markupsafe netifaces numpy openssl photolibrary pillow plyer py3dns pycrypto pykka pyobjus python3 pyyaml sdl2 sdl2_image sdl2_mixer sdl2_ttf werkzeug zbarlight
# Remove directory and subdirectory /Users/djvu/workspace/intercom/phone/.buildozer/applibs
# Create directory /Users/djvu/workspace/intercom/phone/.buildozer/applibs
# Run ['bash', '-c', 'source venv/bin/activate && env']
# Cwd /Users/djvu/workspace/intercom/phone/.buildozer
SHELL=/bin/bash
XPC_FLAGS=0x0
TERM_PROGRAM_VERSION=445
__CFBundleIdentifier=com.apple.Terminal
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.FHP3jMIYXy/Listeners
TERM_SESSION_ID=5D32C6BB-D7F6-4A01-B5E3-FDD132F817AA
PWD=/Users/djvu/workspace/intercom/phone/.buildozer
LOGNAME=djvu
LaunchInstanceID=7EBD9CB4-7332-4848-AAF9-14481778BFA2
HOME=/Users/djvu
LANG=ru_RU.UTF-8
SECURITYSESSIONID=186a5
VIRTUAL_ENV=/Users/djvu/workspace/intercom/phone/.buildozer/venv
TMPDIR=/var/folders/mj/8m_25c6n2qx_89vr1ty_nb4c0000gn/T/
TERM=xterm-256color
USER=djvu
SHLVL=1
VIRTUAL_ENV_PROMPT=(venv) 
XPC_SERVICE_NAME=0
PS1=(venv) 
PATH=/Users/djvu/workspace/intercom/phone/.buildozer/venv/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
__CF_USER_TEXT_ENCODING=0x1F5:0x7:0x31
TERM_PROGRAM=Apple_Terminal
_=/usr/bin/env
# Install requirement kivy-ios in virtualenv
# Run ['pip', 'install', '--target=/Users/djvu/workspace/intercom/phone/.buildozer/applibs', 'kivy-ios']
# Cwd /Users/djvu/workspace/intercom/phone/.buildozer
Collecting kivy-ios
  Using cached kivy_ios-2023.1.29-py3-none-any.whl (1.1 MB)
Collecting Cython
  Using cached Cython-0.29.33-py2.py3-none-any.whl (987 kB)
Collecting cookiecutter
  Using cached cookiecutter-2.1.1-py2.py3-none-any.whl (36 kB)
Collecting pbxproj
  Using cached pbxproj-3.5.0-py3-none-any.whl (40 kB)
Collecting Pillow
  Using cached Pillow-9.4.0-2-cp311-cp311-macosx_10_10_x86_64.whl (3.3 MB)
Collecting requests
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting sh
  Using cached sh-2.0.2-py3-none-any.whl (38 kB)
Collecting binaryornot>=0.4.4
  Using cached binaryornot-0.4.4-py2.py3-none-any.whl (9.0 kB)
Collecting Jinja2<4.0.0,>=2.7
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting click<9.0.0,>=7.0
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting pyyaml>=5.3.1
  Using cached PyYAML-6.0-cp311-cp311-macosx_10_9_x86_64.whl (188 kB)
Collecting jinja2-time>=0.2.0
  Using cached jinja2_time-0.2.0-py2.py3-none-any.whl (6.4 kB)
Collecting python-slugify>=4.0.0
  Using cached python_slugify-8.0.1-py2.py3-none-any.whl (9.7 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_x86_64.whl (123 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.9/140.9 kB 2.7 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
  Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting openstep-parser>=1.5.1
  Using cached openstep_parser-1.5.4-py3-none-any.whl (4.5 kB)
Collecting docopt
  Using cached docopt-0.6.2.tar.gz (25 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting chardet>=3.0.2
  Using cached chardet-5.1.0-py3-none-any.whl (199 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.2-cp311-cp311-macosx_10_9_x86_64.whl (13 kB)
Collecting arrow
  Using cached arrow-1.2.3-py3-none-any.whl (66 kB)
Collecting text-unidecode>=1.3
  Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Collecting python-dateutil>=2.7.0
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: text-unidecode, openstep-parser, docopt, urllib3, six, sh, pyyaml, python-slugify, Pillow, pbxproj, MarkupSafe, idna, Cython, click, charset-normalizer, chardet, certifi, requests, python-dateutil, Jinja2, binaryornot, arrow, jinja2-time, cookiecutter, kivy-ios
  DEPRECATION: docopt is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for docopt: started
  Running setup.py install for docopt: finished with status 'done'
Successfully installed Cython-0.29.33 Jinja2-3.1.2 MarkupSafe-2.1.2 Pillow-9.4.0 arrow-1.2.3 binaryornot-0.4.4 certifi-2022.12.7 chardet-5.1.0 charset-normalizer-3.1.0 click-8.1.3 cookiecutter-2.1.1 docopt-0.6.2 idna-3.4 jinja2-time-0.2.0 kivy-ios-2023.1.29 openstep-parser-1.5.4 pbxproj-3.5.0 python-dateutil-2.8.2 python-slugify-8.0.1 pyyaml-6.0 requests-2.28.2 sh-2.0.2 six-1.16.0 text-unidecode-1.3 urllib3-1.26.15

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
# Install requirement kivymd in virtualenv
# Run ['pip', 'install', '--target=/Users/djvu/workspace/intercom/phone/.buildozer/applibs', 'kivymd']
# Cwd /Users/djvu/workspace/intercom/phone/.buildozer
Collecting kivymd
  Using cached kivymd-1.1.1-py3-none-any.whl
Collecting kivy>=2.0.0
  Using cached Kivy-2.1.0.tar.gz (23.8 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting pillow
  Using cached Pillow-9.4.0-2-cp311-cp311-macosx_10_10_x86_64.whl (3.3 MB)
Collecting Kivy-Garden>=0.1.4
  Using cached Kivy_Garden-0.1.5-py3-none-any.whl (4.6 kB)
Collecting docutils
  Using cached docutils-0.19-py3-none-any.whl (570 kB)
Collecting pygments
  Using cached Pygments-2.14.0-py3-none-any.whl (1.1 MB)
Collecting requests
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_x86_64.whl (123 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.15-py2.py3-none-any.whl (140 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Building wheels for collected packages: kivy
  Building wheel for kivy (pyproject.toml): started
  Building wheel for kivy (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Building wheel for kivy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [96 lines of output]
      [INFO   ] [Logger      ] Record log in /Users/djvu/.kivy/logs/kivy_23-03-11_2.txt
      [INFO   ] [Kivy        ] v2.1.0
      [INFO   ] [Kivy        ] Installed at "/private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4/kivy/__init__.py"
      [INFO   ] [Python      ] v3.11.2 (main, Feb 16 2023, 03:07:35) [Clang 14.0.0 (clang-1400.0.29.202)]
      [INFO   ] [Python      ] Interpreter at "/Users/djvu/workspace/intercom/phone/.buildozer/venv/bin/python3.11"
      [INFO   ] [Logger      ] Purge log fired. Processing...
      [INFO   ] [Logger      ] Purge finished!
       <string>:370: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
       <string>:373: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
       <string>:377: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
       warning: kivy/graphics/common.pxi:9:4: 'const_char_ptr' redeclared
       warning: kivy/graphics/common.pxi:23:4: 'size_t' redeclared
      Current directory is: /private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4
      Source and initial build directory is: /private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4
      Python path is:
      /private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4
      /Users/djvu/workspace/intercom/phone/.buildozer/venv/lib/python3.11/site-packages/pip/_vendor/pep517/in_process
      /private/tmp/pip-build-env-fwmd57tf/site
      /usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python311.zip
      /usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11
      /usr/local/Cellar/[email protected]/3.11.2_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/lib-dynload
      /private/tmp/pip-build-env-fwmd57tf/overlay/lib/python3.11/site-packages
      /private/tmp/pip-build-env-fwmd57tf/normal/lib/python3.11/site-packages
      /private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4/kivy/modules
      /Users/djvu/.kivy/mods
      
      
      Found Cython at /private/tmp/pip-build-env-fwmd57tf/overlay/lib/python3.11/site-packages/Cython/__init__.py
      Detected supported Cython version 0.29.28
      User distribution detected, avoid portable command.
      Using this graphics system: OpenGL ES 2
      GStreamer framework not found, fallback on pkg-config
      GStreamer found via pkg-config
      Missing framework /Library/Frameworks/SDL2.framework
      Missing framework /Library/Frameworks/SDL2_ttf.framework
      Missing framework /Library/Frameworks/SDL2_image.framework
      Missing framework /Library/Frameworks/SDL2_mixer.framework
      SDL2 frameworks not found, fallback on pkg-config
      WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
      
      b"Package readline was not found in the pkg-config search path.\nPerhaps you should add the directory containing `readline.pc'\nto the PKG_CONFIG_PATH environment variable\nPackage 'readline', required by 'fluidsynth', not found\n"
      
      Xcode detected at b'/Applications/Xcode.app/Contents/Developer', and using OS X13.0 sdk
      WARNING: A problem occurred while running pkg-config --libs --cflags pangoft2 (code 1)
      
      b"Package pangoft2 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `pangoft2.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'pangoft2' found\n"
      
      ERROR: Dependency for context.pyx not resolved: config.pxi
      ERROR: Dependency for compiler.pyx not resolved: config.pxi
      ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
      ERROR: Dependency for fbo.pyx not resolved: config.pxi
      ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
      ERROR: Dependency for instructions.pyx not resolved: config.pxi
      ERROR: Dependency for opengl.pyx not resolved: config.pxi
      ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
      ERROR: Dependency for shader.pyx not resolved: config.pxi
      ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
      ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
      ERROR: Dependency for texture.pyx not resolved: config.pxi
      ERROR: Dependency for vbo.pyx not resolved: config.pxi
      ERROR: Dependency for vertex.pyx not resolved: config.pxi
      ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
      ERROR: Dependency for cgl.pyx not resolved: config.pxi
      ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
      ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
      ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
      ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
      ERROR: Dependency for svg.pyx not resolved: config.pxi
      Building extensions in parallel using 4 cores
      Updated build directory to: build/lib.macosx-13-x86_64-cpython-311
      Build configuration is:
       * use_rpi = 0
       * use_egl = 0
       * use_opengl_es2 = 1
       * use_opengl_mock = 0
       * use_sdl2 = 0
       * use_pangoft2 = 0
       * use_ios = 0
       * use_android = 0
       * use_mesagl = 0
       * use_x11 = 0
       * use_wayland = 0
       * use_gstreamer = 1
       * use_avfoundation = 1
       * use_osx_frameworks = 1
       * debug_gl = 0
       * kivy_sdl_gl_alpha_size = 8
       * debug = False
      Updated build/lib.macosx-13-x86_64-cpython-311/kivy/include/config.h
      Updated /private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4/kivy/include/config.h
      Updated build/lib.macosx-13-x86_64-cpython-311/kivy/include/config.pxi
      Updated /private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4/kivy/include/config.pxi
      Updated build/lib.macosx-13-x86_64-cpython-311/kivy/setupconfig.py
      Updated /private/tmp/pip-install-fdfbey5b/kivy_404fe4d6c46a4f67a3f182a53c75e3a4/kivy/setupconfig.py
      Detected compiler is unix
       error: command '/bin/false' failed: No such file or directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for kivy
Failed to build kivy
ERROR: Could not build wheels for kivy, which is required to install pyproject.toml-based projects

[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
# Command failed: ['pip', 'install', '--target=/Users/djvu/workspace/intercom/phone/.buildozer/applibs', 'kivymd']
# ENVIRONMENT:
#     VIRTUAL_ENV = '/Users/djvu/workspace/intercom/phone/.buildozer/venv'
#     PATH = '/Users/djvu/workspace/intercom/phone/.buildozer/venv/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin'
#     CC = '/bin/false'
#     CXX = '/bin/false'
# 
# 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
Mac-djvu:phone djvu$ 

@dvjdjvu
Copy link
Author

dvjdjvu commented Mar 11, 2023

This error desided when added kivymd and xcamera.

@misl6
Copy link
Member

misl6 commented Mar 12, 2023

Hi @dvjdjvu !

Looks like KivyMD is trying to install Kivy from PyPi wheels, and should not.

Can you try to change your requirements line in buildozer.spec with the following? (Please clean your previous build by deleting the .buildozer folder)

requirements = python3, kivy, Pillow, requests, urllib3,  chardet, idna, kivymd, oscpy, python-osc, phonenumbers, https://github.com/kivy/plyer/archive/refs/heads/master.zip, libiconv, libzbar, pyzbar, xcamera

@dvjdjvu
Copy link
Author

dvjdjvu commented Mar 12, 2023

I changed requirements, the same error.
image

image

@misl6
Copy link
Member

misl6 commented Mar 12, 2023

My mind thought that you were building something for Android, not iOS. I'm sorry.

Well, looks like we're installing pip dependencies before building the ones which have a recipe, when buildozer is using kivy-ios under the hood to build an iOS artifact.

Please, ATM use kivy-ios directly, as it seems we have a bug here. (We're open to PRs anyway, if you want to help 😀)

@misl6 misl6 moved this from Needs Triage to In Progress in Kivy's Control Tower Mar 12, 2023
@misl6 misl6 moved this from In Progress to Todo in Kivy's Control Tower Mar 12, 2023
@misl6 misl6 changed the title mac OS '/bin/false' failed: buildozer does not build recipes before pip-installing plain-python packages when targeting iOS Mar 12, 2023
@dvjdjvu
Copy link
Author

dvjdjvu commented Mar 12, 2023

Thx, Under Android, I compiled my application, though with edits builddozer too. Now I'm trying under iOS))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants