Buildozer 错误-"install mpmath version >=0.19"
Buildozer Error-"install mpmath version >=0.19"
正在尝试使用 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 的情况下进行部署后,它成功了,应用程序立即在 phone 上崩溃了,所以这是 mpmath 的问题,肯定是 sympy
命令的完整输出:sudo buildozer android debug deploy run
https://github.com/Ohadforman/Error-buildozer/blob/master/Error
有什么想法吗?
我找到了解决方案。
- 你应该在你的 python 解释器上安装 mpmath
- 剪切或复制 mpmath 文件夹
- 在您的项目中找到 sympy 文件夹 project_folder/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sympy/armeabi-v7a__ndk_target_21/sympy
一些文件夹应该命名不同
- 将 mpmath 文件夹粘贴到第 3 步的文件夹中
希望对你有所帮助,对我来说很有效
正在尝试使用 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 的情况下进行部署后,它成功了,应用程序立即在 phone 上崩溃了,所以这是 mpmath 的问题,肯定是 sympy
命令的完整输出:sudo buildozer android debug deploy run
https://github.com/Ohadforman/Error-buildozer/blob/master/Error
有什么想法吗?
我找到了解决方案。
- 你应该在你的 python 解释器上安装 mpmath
- 剪切或复制 mpmath 文件夹
- 在您的项目中找到 sympy 文件夹 project_folder/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/sympy/armeabi-v7a__ndk_target_21/sympy 一些文件夹应该命名不同
- 将 mpmath 文件夹粘贴到第 3 步的文件夹中
希望对你有所帮助,对我来说很有效