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

Cannot build for arch linux system #1890

Closed
georgerabus opened this issue Jan 19, 2025 · 1 comment
Closed

Cannot build for arch linux system #1890

georgerabus opened this issue Jan 19, 2025 · 1 comment
Labels

Comments

@georgerabus
Copy link

georgerabus commented Jan 19, 2025

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?

Copy link

👋 @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.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants