简体   繁体   中英

Buildozer Error-“install mpmath version >=0.19”

Trying to deploy an android app using Buildozer. build with Kivy, based on Sympy package.

getting the next error lines:

      STDOUT:
Please install the mpmath package with a version >= 0.19


  STDERR:

    # Command failed: /usr/bin/python3 -m pythonforandroid.toolchain 
create --dist_name=myapp --bootstrap=sdl2 --
requirements=python3,kivy,sympy --arch armeabi-v7a 
--copy-libs --color=always --
storage-dir="/home/ohad/Scalc/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=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

Imports of my script, not include Kivy's imports:

    from sympy import *
from sympy.parsing.sympy_parser import parse_expr
from sympy.parsing.sympy_parser import standard_transformations, \
    implicit_multiplication_application

Update : After trying to deploy without sympy, it worked, the app crashed immediately on the phone, so its a problem with mpmath,sympy for sure

Full output of command: sudo buildozer android debug deploy run

https://github.com/Ohadforman/Error-buildozer/blob/master/Error

any ideas?

I find solution.

  1. you should install mpmath on your python interpreter
  2. cut or copy mpmath folder
  3. find sympy folder on you project project_folder/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sympy/armeabi-v7a__ndk_target_21/sympy some folders should be named different
  4. paste mpmath folder into folder from 3 step

I wish it help you, for me it's work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM