You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since arch linux has a strong policy against globally installed packages using pip, I can either install with either pacman -S python-<module>, create virtual environment or install it with pipx.
I choose to manage the application with pipx since its the most intuitive (the arch repo package is outdated).
I managed to inject setuptools in the pipx env and it works perfectly:
buildozer --help
# Check configuration tokens
Usage:
buildozer [--profile <name>] [--verbose] [target] <command>...
buildozer --version
Available targets:
android Android target, based on python-for-android project
ios iOS target, based on kivy-ios project
but now when I want to build the app:
buildozer android debug deploy run
# 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 /usr/bin/cython3
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-17-openjdk/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-17-openjdk/bin/keytool
# Install platform
# Run ['git', 'clone', '-b', 'master', '--single-branch', 'https://github.com/kivy/python-for-android.git', 'python-for-android']
# Cwd /home/george/repos/github/DasKebab/.buildozer/android/platform
Cloning into 'python-for-android'...
# Run ['/home/george/.local/share/pipx/venvs/buildozer/bin/python', '-m', 'pip', 'install', '-q', '--user', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10, <2.0; sys_platform!="win32"', 'build', 'toml', 'packaging', 'setuptools']
# Cwd None
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
# Command failed: ['/home/george/.local/share/pipx/venvs/buildozer/bin/python', '-m', 'pip', 'install', '-q', '--user', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10, <2.0; sys_platform!="win32"', 'build', 'toml', 'packaging', 'setuptools']
it looks like the install script is using pip install --user approach, which again, does not work on arch linux system. How can this problem be solved?
The text was updated successfully, but these errors were encountered:
👋 @georgerabus,
Sorry to hear you are having difficulties with Kivy's Buildozer; Kivy unites a number of different technologies, so building apps can be temperamental.
We try to use GitHub issues only to track work for developers to do to fix bugs and add new features to Buildozer. This issue has been closed, because it doesn't describe a bug or new feature request for Buildozer.
There is a mailing list and a Discord channel to support Kivy users debugging their own systems, which should be able to help. They are linked in the ReadMe.
Of course, if it turns out you have stumbled over a bug in Buildozer, we do want to hear about it here. The support channels should be able to help you craft an appropriate bug report.
Since arch linux has a strong policy against globally installed packages using pip, I can either install with either
pacman -S python-<module>
, create virtual environment or install it with pipx.I choose to manage the application with pipx since its the most intuitive (the arch repo package is outdated).
I managed to inject setuptools in the pipx env and it works perfectly:
but now when I want to build the app:
it looks like the install script is using
pip install --user
approach, which again, does not work on arch linux system. How can this problem be solved?The text was updated successfully, but these errors were encountered: