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 master cannot work from within venv / bootstrap ios-deploy fails because of nested virtualenv when trying to install pure-Python dependencies. #1807

Open
cederom opened this issue May 23, 2024 · 0 comments

Comments

@cederom
Copy link
Contributor

cederom commented May 23, 2024

Versions

  • Python: 3.11.9.
  • OS: macOS 14.5 Sonoma ARM64.
  • Buildozer: bd1d530fbe1e7f025a2085947f2fa5cf8ba15f40 (master).
  • kivy-ios: master and v2024.03.17.
  • ios-deploy: master and 1.12.2.

Description

  • Buildozer release 1.5.0 (2023-01-28) can work from within virtualenv.
  • Buildozer master cannot work from within virtualenv (fails at ios-deploy dependencies bootstrap).
  • No matter if ios-deploy and kivy-ios uses release or master.
  • Please run buildozer outside of a virtualenv instead is not possible on all platforms where package is not available or system modification is not possible.
  • This is a serious regression.

Logs

(venv) buildozer ios update
# Ensure build layout
# Create directory /Users/XXX/.buildozer
# Create directory /Users/XXX/.buildozer/applibs
# Create directory /Users/XXX/.buildozer/ios/platform
# Create directory /Users/XXX/.buildozer/ios/app
# Check configuration tokens
# Run 'security find-identity -v -p codesigning' ...
# Cwd None
  1) XXX
  2) XXX
  3) XXX
     3 valid identities found
# 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 /opt/homebrew/bin/git
# Search for Cython cython
#  -> found at /Users/XXX/venv/bin/cython
# Search for pkg-config
#  -> found at /opt/homebrew/bin/pkg-config
# Search for autoconf
#  -> found at /opt/homebrew/bin/autoconf
# Search for automake
#  -> found at /opt/homebrew/bin/automake
# Search for libtool
#  -> found at /usr/bin/libtool
# Check availability of a iPhone SDK
# Run 'xcodebuild -showsdks' ...
# Cwd None
DriverKit SDKs:
        DriverKit 23.5                  -sdk driverkit23.5

iOS SDKs:
        iOS 17.5                        -sdk iphoneos17.5

iOS Simulator SDKs:
        Simulator - iOS 17.5            -sdk iphonesimulator17.5

macOS SDKs:
        macOS 14.5                      -sdk macosx14.5
        macOS 14.5                      -sdk macosx14.5

tvOS SDKs:
        tvOS 17.5                       -sdk appletvos17.5

tvOS Simulator SDKs:
        Simulator - tvOS 17.5           -sdk appletvsimulator17.5

visionOS SDKs:
        visionOS 1.2                    -sdk xros1.2

visionOS Simulator SDKs:
        Simulator - visionOS 1.2        -sdk xrsimulator1.2

watchOS SDKs:
        watchOS 10.5                    -sdk watchos10.5

watchOS Simulator SDKs:
        Simulator - watchOS 10.5        -sdk watchsimulator10.5

#  -> found '17.5'
# Check Xcode path
# Run 'xcode-select -print-path' ...
# Cwd None
/Applications/Xcode.app/Contents/Developer
#  -> found /Applications/Xcode.app/Contents/Developer

# Install platform
# Run 'git clone --branch v2024.03.17 https://github.com/kivy/kivy-ios.git' ...
# Cwd /Users/XXX/.buildozer/ios/platform
Cloning into 'kivy-ios'...
Note: switching to 'd02948e13c86e7fde8d48cfa4719fd34a7c298a3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

# Run 'git clone --branch 1.12.2 https://github.com/phonegap/ios-deploy' ...
# Cwd /Users/XXX/.buildozer/ios/platform
Cloning into 'ios-deploy'...
Note: switching to 'ed7de7792d28a5110242748649047a95c95ea917'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

# Check application requirements
# Run '/Users/XXX/venv/bin/python toolchain.py recipes --compact' ...
# Cwd /Users/XXX/.buildozer/ios/platform/kivy-ios
audiostream click curly cymunk ffmpeg ffpyplayer flask freetype hostopenssl hostpython3 ios itsdangerous jinja2 kivent_core kivy kiwisolver libcurl libffi libjpeg libpng libzbar markupsafe materialyoucolor matplotlib netifaces numpy openssl photolibrary pillow plyer py3dns pycrypto pykka pyobjus python3 pyyaml sdl2 sdl2_image sdl2_mixer sdl2_ttf werkzeug zbarlight
# virtualenv is needed to install pure-Python modules, but
# virtualenv does not support nesting, and you are running
# buildozer in one. Please run buildozer outside of a
# virtualenv instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant