【问题标题】:Toolchain build python3 kivy error - Kivy ios ,bash工具链构建 python3 kivy 错误 - Kivy ios ,bash
【发布时间】:2021-03-28 11:43:28
【问题描述】:

我运行的命令:

toolchain build python3 kivy

错误是(输出):

Exception in thread background thread for pid 30326:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 1633, in wrap
    fn(*rgs, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 2557, in background_thread
    handle_exit_code(exit_code)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 2261, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 861, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_77: 

  RAN: /Users/macbook/Desktop/Button/build/hostpython3/x86_64/Python-3.8.2/configure --prefix=/Users/macbook/Desktop/Button/dist/hostpython3 --with-openssl=/Users/macbook/Desktop/Button/dist/hostopenssl

  STDOUT:
checking build system type... x86_64-apple-darwin20.1.0
checking host system type... x86_64-apple-darwin20.1.0
checking for python3.8... python3.8
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "darwin"
checking for gcc... clang -Qunused-arguments -fcolor-diagnostics
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang -Qunused-arguments -fcolor-diagnostics accepts -g... yes
checking for clang -Qunused-arguments -fcolor-diagnostics opt... (17382 more, please see e.stdout)

  STDERR:


[INFO    ] cd /Users/macbook/Desktop/Button/build/hostpython3/x86_64/Python-3.8.2
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/toolchain", line 10, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 1497, in main
    ToolchainCL()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 1270, in __init__
    getattr(self, args.command)()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 1323, in build
    build_recipes(args.recipe, ctx)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 1121, in build_recipes
    recipe.execute()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 700, in execute
    self.build_all()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 85, in _cache_execution
    f(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 794, in build_all
    self.build(arch)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 85, in _cache_execution
    f(self, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 781, in build
    self.build_arch(arch)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 833, in build_arch
    getattr(self, build)()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/recipes/hostpython3/__init__.py", line 70, in build_x86_64
    _env=build_env)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kivy_ios/toolchain.py", line 67, in shprint
    for line in cmd:
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 907, in next
    self.wait()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 837, in wait
    self.handle_command_exit_code(exit_code)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sh.py", line 861, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_77: 

  RAN: /Users/macbook/Desktop/Button/build/hostpython3/x86_64/Python-3.8.2/configure --prefix=/Users/macbook/Desktop/Button/dist/hostpython3 --with-openssl=/Users/macbook/Desktop/Button/dist/hostopenssl

  STDOUT:
checking build system type... x86_64-apple-darwin20.1.0
checking host system type... x86_64-apple-darwin20.1.0
checking for python3.8... python3.8
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "darwin"
checking for gcc... clang -Qunused-arguments -fcolor-diagnostics
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang -Qunused-arguments -fcolor-diagnostics accepts -g... yes
checking for clang -Qunused-arguments -fcolor-diagnostics opt... (17382 more, please see e.stdout)

  STDERR:

我也尝试过 git clone kivy-ios 但它给出了同样的错误。

如果你说 build python2 ,那就不行了。

我正在等待答案。

对于堆栈溢出控件,我将复制粘贴

我也尝试过 git clone kivy-ios 但它给出了同样的错误。

如果你说 build python2 ,它是行不通的。

【问题讨论】:

    标签: python ios python-3.x kivy toolchain


    【解决方案1】:

    解决方案:更新Xcode和更新Mac os

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-02-18
      • 2014-04-30
      • 2021-03-22
      • 2021-01-25
      • 2013-07-21
      • 1970-01-01
      • 2020-08-22
      • 1970-01-01
      相关资源
      最近更新 更多