我正在用buildozer构建应用程序,但是为armeabi-v7a构建liblzma时遇到了一些例外

如何解决我正在用buildozer构建应用程序,但是为armeabi-v7a构建liblzma时遇到了一些例外

首先我启动了Buildozer init,然后启动了命令'buildozer -v android debug'。在为armeabi-v7a构建liblzma方面存在例外。 简而言之,这是我的日志。

[INFO]:    <- directory context /home/manish/app/.buildozer/android/platform/python-for-android
[INFO]:    -> running cp /home/manish/app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/libffi/armeabi-v7a__ndk_target_21...(and 127 more)
[INFO]:    Building liblzma for armeabi-v7a
[INFO]:    -> directory context /home/manish/app/.buildozer/android/platform/build-armeabi-v7a/build/other_builds/liblzma/armeabi-v7a__ndk_target_21/liblzma
[INFO]:    -> running autoreconf -vif
           working: autoreconf: autopoint is needed because this package uses Gettext                                                                                  Exception in thread background thread for pid 19822:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py",line 932,in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py",line 870,in run
    self._target(*self._args,**self._kwargs)
  File "/home/manish/.local/lib/python3.8/site-packages/sh.py",line 1662,in wrap
    fn(*args,**kwargs)
  File "/home/manish/.local/lib/python3.8/site-packages/sh.py",line 2606,in background_thread
    handle_exit_code(exit_code)
  File "/home/manish/.local/lib/python3.8/site-packages/sh.py",line 2304,in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/manish/.local/lib/python3.8/site-packages/sh.py",line 877,in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/autoreconf -vif

  STDOUT:
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext


  STDERR:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py",line 193,in _run_module_as_main
    return _run_code(code,main_globals,None,File "/usr/lib/python3.8/runpy.py",line 86,in _run_code
    exec(code,run_globals)
  File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",line 1260,in <module>
    main()
  File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py",line 18,in main
    ToolchainCL()
  File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",line 709,in __init__
    getattr(self,command)(args)
  File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",line 154,in wrapper_func
    build_dist_from_args(ctx,dist,args)
  File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py",line 213,in build_dist_from_args
    build_recipes(build_order,python_modules,ctx,File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/build.py",line 577,in build_recipes
    recipe.build_arch(arch)
  File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/liblzma/__init__.py",line 24,in build_arch
    shprint(sh.Command('autoreconf'),'-vif',_env=env)
  File "/home/manish/app/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py",line 167,in shprint
    for line in output:
  File "/home/manish/.local/lib/python3.8/site-packages/sh.py",line 925,in next
    self.wait()
  File "/home/manish/.local/lib/python3.8/site-packages/sh.py",line 849,in wait
    self.handle_command_exit_code(exit_code)
  File "/home/manish/.local/lib/python3.8/site-packages/sh.py",in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1:

  RAN: /usr/bin/autoreconf -vif

  STDOUT:
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext


  STDERR:

# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy,kivymd,os,math,pandas,xlsxwriter,time,threading,datetime,PIL,numpy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/manish/app/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
# ENVIRONMENT:
#     SHELL = '/bin/bash'
#     WSL_DISTRO_NAME = 'Ubuntu'
#     NAME = 'LAPTOP-BR4UQ5CH'
#     PWD = '/home/manish/app'
#     LOGNAME = 'manish'
#     MOTD_SHOWN = 'update-motd'
#     HOME = '/home/manish'
#     LANG = 'C.UTF-8'
#     LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     TERM = 'xterm-256color'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     USER = 'manish'
#     SHLVL = '1'
#     WSLENV = ''
#     XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     PATH = ('/home/manish/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/manish/.local/bin:/home/manish/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program '
 'Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc:/mnt/c/Program '
 'Files/Common Files/Oracle/Java/javapath:/mnt/c/Program Files '
 '(x86)/Intel/iCLS Client/:/mnt/c/Program Files/Intel/iCLS '
 'Client/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program '
 'Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program '
 'Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files '
 '(x86)/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program '
 'Files/Intel/Intel(R) Management Engine '
 'Components/IPT:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program '
 'Files/Git/cmd:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Microsoft SQL '
 'Server/110/Tools/Binn/:/mnt/c/Program '
 'Files/Java/jdk-15/bin:/mnt/c/Users/Manish/AppData/Local/Programs/Python/Python37/Scripts:/mnt/c/Users/Manish/AppData/Local/Programs/Python/Python37:/mnt/c/Users/Manish/AppData/Local/Google/Chrome/Application:/mnt/c/Program '
 'Files/Mozilla '
 'Firefox:/mnt/c/Users/Manish/AppData/Local/Programs/Python/Python37/Scripts/:/mnt/c/Users/Manish/AppData/Local/Programs/Python/Python37/:/snap/bin')
#     HOSTTYPE = 'x86_64'
#     OLDPWD = '/home/manish'
#     _ = '/home/manish/.local/bin/buildozer'
#     PACKAGES_PATH = '/home/manish/.buildozer/android/packages'
#     ANDROIDSDK = '/home/manish/.buildozer/android/platform/android-sdk'
#     ANDROIDNDK = '/home/manish/.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

我不知道如何解决此错误。

[app]


title = Jpkundali

package.name = myapp

package.domain = org.test

source.dir = .

source.include_exts = py,png,jpg,kv,atlas

version = 0.1

requirements = python3,numpy

orientation = portrait



osx.python_version = 3

osx.kivy_version = 1.9.1

fullscreen = 0

android.arch = armeabi-v7a

ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master

ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.7.0


[buildozer]

log_level = 2
warn_on_root = 1

这是我的buildozer.spec文件,其中包含了所有mu需求库,例如python3,kivy,kivymd,os,math,pandas,xlsxwriter,time,threading,datetime,PIL,numpy。我在做错什么吗?

解决方法

我有同样的问题。我知道,如果您将熊猫添加到您的需求中,则会出现此问题。

根据https://github.com/kivy/buildozer/issues/1244,此问题是由熊猫食谱的fix_numpy_includes.patch引起的。不幸的是,没有任何提示可以解决这个问题。

另一种选择是使用pandasnumpy和/或liblzma的旧版本。您可以通过pandas==1.0.3

在需求中选择特定版本

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-