-
Notifications
You must be signed in to change notification settings - Fork 507
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
Comments
Hi @dvjdjvu , can you please post the full log? |
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$ |
This error desided when added kivymd and xcamera. |
Hi @dvjdjvu ! Looks like KivyMD is trying to install Kivy from PyPi wheels, and should not. Can you try to change your
|
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 Please, ATM use |
buildozer
does not build recipes before pip-installing plain-python packages when targeting iOS
Thx, Under Android, I compiled my application, though with edits builddozer too. Now I'm trying under iOS)) |
Versions
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:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: