【发布时间】:2020-05-18 21:23:30
【问题描述】:
尝试使用 Buildozer 部署 Android 应用。使用 Kivy 构建,基于 Sympy 包。
获取下一个错误行:
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
我的脚本的导入,不包括 Kivy 的导入:
from sympy import *
from sympy.parsing.sympy_parser import parse_expr
from sympy.parsing.sympy_parser import standard_transformations, \
implicit_multiplication_application
更新: 尝试在没有 sympy 的情况下部署后,它工作了,应用程序立即在手机上崩溃,所以它是 mpmath 的问题,sympy 肯定
命令的完整输出:sudo buildozer android debug deploy run
https://github.com/Ohadforman/Error-buildozer/blob/master/Error
有什么想法吗?
【问题讨论】:
-
@GuneshShanbhag 它看起来像另一个问题,buildozer“要求”另一个版本,而在我的脚本中我什至没有使用 mpmath。实际上,我认为关键问题在于 STDERR 步骤。而且我不完全确定它的原因是 sympy 还是 mpmath。
-
你能提供命令
sudo buildozer android debug deploy run的完整输出吗 -
@GuneshShanbhag github.com/Ohadforman/Error-buildozer/blob/master/Error
标签: python android kivy sympy buildozer