Skip to content

matplotlib's recipe problem #2502

Description

@buybuyxyz

Checklist

  • the issue is indeed a bug and not a support request
  • issue doesn't already exist: https://github.com/kivy/python-for-android/issues
  • I have a short, runnable example that reproduces the issue
  • I reproduced the problem with the latest development version (p4a.branch = develop)
  • I used the grave accent (aka backticks) to format code or logs when appropriated

Versions

  • Python:3.8.10
  • OS:Ubuntu 20.04
  • Kivy:2.0.0
  • Cython:0.29.24
  • OpenJDK:11.0.11

Description

// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?

buildozer.spec

Command:

buildozer android debug deploy run
// REPLACE ME: buildozer command ran? e.g. buildozer android debug
// Keep the triple grave accent (aka backquote/backtick) to have the code formatted

Spec file:

// REPLACE ME: Paste your buildozer.spec file here
change following lines 

package.domain = org.test1
requirements = python3,kivy,matplotlib
android.archs = arm64-v8a
p4a.branch = develop

Logs

// REPLACE ME: Paste the build output containing the error
// Keep the triple grave accent (a.k.a. backquote/backtick) to have the code formatted
.............
[INFO]:    Prebuilding kivy for arm64-v8a
[INFO]:    kivy has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding matplotlib for arm64-v8a
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1294, in <module>
    main()
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 728, in __init__
    getattr(self, command)(args)
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 210, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx,
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 588, in build_recipes
    recipe.prebuild_arch(arch)
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/matplotlib/__init__.py", line 103, in prebuild_arch
    self.generate_libraries_pc_files(arch)
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/matplotlib/__init__.py", line 37, in generate_libraries_pc_files
    pkg_config_path = self.get_recipe_env(arch)['PKG_CONFIG_PATH']
  File "/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/matplotlib/__init__.py", line 135, in get_recipe_env
    self.ctx.get_site_packages_dir(),
TypeError: get_site_packages_dir() missing 1 required positional argument: 'arch'
# Command failed: /home/youtube/kivy_buildozer_aab/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,matplotlib --arch arm64-v8a --copy-libs --color=always --storage-dir="/home/youtube/kivy_buildozer_aab/app/helloworld_aab/.buildozer/android/platform/build-arm64-v8a" --ndk-api=21 --ignore-setup-py --debug
# ENVIRONMENT:
#     SHELL = '/bin/bash'
#     PWD = '/home/youtube/kivy_buildozer_aab/app/helloworld_aab'
#     LOGNAME = 'youtube'
#     HOME = '/home/youtube'
#     LANG = 'ja_JP.UTF-8'
#     VIRTUAL_ENV = '/home/youtube/kivy_buildozer_aab'
#     TERM = 'xterm-256color'
#     LIBVIRT_DEFAULT_URI = 'qemu:///system'
#     USER = 'youtube'
#     SHLVL = '0'
#     PS1 = '(kivy_buildozer_aab) ${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ '
#     XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     PATH = '/home/youtube/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/youtube/kivy_buildozer_aab/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
#     MAIL = '/var/mail/youtube'
#     OLDPWD = '/home/youtube/kivy_buildozer_aab/app'
#     _ = '/home/youtube/kivy_buildozer_aab/bin/buildozer'
#     PACKAGES_PATH = '/home/youtube/.buildozer/android/packages'
#     ANDROIDSDK = '/home/youtube/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/youtube/.buildozer/android/platform/android-ndk-r19c'
#     ANDROIDAPI = '27'
#     ANDROIDMINAPI = '21'
# 
# 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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions