kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
776 stars 240 forks source link

bash: toolchain: command not found #770

Closed damasterofdabola closed 1 year ago

damasterofdabola commented 1 year ago

Versions

Describe the bug bash: toolchain: command not found after running the appropriate commands outlined in the README. I do not have sudo access on this machine but that shouldn't affect the installation process.

To Reproduce

Install Homebrew without sudo

git clone https://github.com/Homebrew/brew homebrew
eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"

Install kivy-ios & related deps

pip3 install kivy-ios
xcode-select --install
brew install autoconf automake libtool pkg-config
brew link libtool

Errored behavior

HHS-702-23:~ s9800826$ toolchain recipes
-bash: toolchain: command not found
damasterofdabola commented 1 year ago

I tried the alternative dev installation method using editable (git clone && pip3 install -e) and it failed with the following:

Running setup.py develop for kivy-ios
    ERROR: Command errored out with exit status 1:
     command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/s9800826/git/kivy-ios/setup.py'"'"'; __file__='"'"'/Users/s9800826/git/kivy-ios/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
         cwd: /Users/s9800826/git/kivy-ios/
    Complete output (28 lines):
    running develop
    WARNING: The user site-packages directory is disabled.
    error: can't create or remove files in install directory

    The following error occurred while trying to add or remove files in the
    installation directory:

        [Errno 1] Operation not permitted: '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/test-easy-install-31561.write-test'

    The installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

        /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/

    Perhaps your account does not have write access to this directory?  If the
    installation directory is a system-owned directory, you may need to sign in
    as the administrator or "root" account.  If you do not have administrative
    access to this machine, you may wish to choose a different installation
    directory, preferably one that is listed in your PYTHONPATH environment
    variable.

    For information on other options, you may wish to consult the
    documentation at:

      https://setuptools.readthedocs.io/en/latest/deprecated/easy_install.html

    Please make the appropriate changes for your system and try again.

    ----------------------------------------
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/s9800826/git/kivy-ios/setup.py'"'"'; __file__='"'"'/Users/s9800826/git/kivy-ios/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.

So maybe kivy-ios requiring write access means I need to be an admin? Can I install and use the toolchain build process w/o having sudoers access?

misl6 commented 1 year ago

So maybe kivy-ios requiring write access means I need to be an admin?

Absolutely not. And using sudo is highly discouraged.

misl6 commented 1 year ago

Consider using a different Python installation, and not the one provided by XCode which looks to have permission issues on your side.

github-actions[bot] commented 1 year ago

👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.

If you're having trouble installing or using kivy-ios, maybe you could be interested to installation and requirements.

Let us know if this comment was made in error, and we'll be happy to reopen the issue.

damasterofdabola commented 1 year ago

@pythonsus I am not admin so I can't change folder perms