【问题标题】:Kivy fails to buildKivy 构建失败
【发布时间】:2020-07-03 10:06:22
【问题描述】:

我的 Kivy 构建失败;我按照GitHub 上的说明进行操作。 我的规格是:

macOS Catalina 10.15.5
XCode 11.5 (incl. CL Tools)

我有两个怀疑为什么这可能会失败。

  1. python3 配方列出了 3.8.2 版
  2. 某些原因它没有下载 openssl,如下面的错误消息所示

命令:

(venv) User-MBP ~ % toolchain build python3 kivy

错误:

...
[INFO    ] Download hostopenssl
[INFO    ] Downloading http://www.openssl.org/source/openssl-1.1.1f.tar.gz
[WARNING ] Download failed. Retrying in 1 second...
[WARNING ] Download failed. Retrying in 1 second...
[WARNING ] Download failed. Retrying in 1 second...
[WARNING ] Download failed. Retrying in 1 second...
[ERROR   ] Max download attempts reached: 5
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1756, in open
    return getattr(self, name)(url)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1965, in open_https
    return self._open_generic_http(self._https_connection, url, data)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 1914, in _open_generic_http
    http_conn.request("GET", selector, headers=headers)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1229, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1275, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1224, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1016, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 956, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1392, in connect
    server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 412, in wrap_socket
    session=session
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 850, in _create
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1108, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)

谢谢!

【问题讨论】:

    标签: python macos kivy zsh macos-catalina


    【解决方案1】:

    您应该授予对安装文件夹的完全读写权限

    我建议你

    1. 创建一个安装文件夹示例构建。 授予对构建文件夹的完全访问权限(读取和写入) 全部安装在该文件夹中

    2. % cd 构建

    3. cd build% sudo -H toolchain build python3 kivy

    https://www.youtube.com/watch?v=R5bAglvrUgQ

    【讨论】:

    • 谢谢,很奇怪我无法让它工作。我降级了 XCode 并按照步骤操作 - 现在可以使用了!
    • 如果您需要帮助,请告诉我,我可以远程帮助您
    猜你喜欢
    • 1970-01-01
    • 2022-06-19
    • 1970-01-01
    • 2014-05-26
    • 1970-01-01
    • 1970-01-01
    • 2017-12-11
    • 1970-01-01
    • 2021-08-05
    相关资源
    最近更新 更多