裤子引导程序无法获取二进制native_engine.so:发生EOF违反协议(_ssl.c:590)

时间:2019-05-25 11:09:56

标签: python pants

在Mac OS Sierra(版本10.12.6)上无法引导“裤子”

“裤子” unix可执行文件的内容位于此处:

https://pantsbuild.github.io/setup/pants

首次运行“裤子二进制源代码路径”-未能引导,并出现标题中指定的错误。我什至尝试了“将裤子全部清除”,但结果仍然相同。在下面完成详细信息。

$./pants clean-all
.
.
.
Successfully built pantsbuild.pants setproctitle ansicolors psutil pathspec scandir pystache docutils Markdown Pygments pywatchman pycparser
Installing collected packages: six, pyparsing, packaging, twitter.common.lang, twitter.common.collections, setproctitle, ansicolors, psutil, twitter.common.dirutil, pathspec, scandir, requests, pystache, setuptools, pycparser, cffi, monotonic, fasteners, pex, docutils, Markdown, Pygments, twitter.common.options, twitter.common.log, twitter.common.confluence, futures, pywatchman, pantsbuild.pants
  Found existing installation: setuptools 40.8.0
    Uninstalling setuptools-40.8.0:
      Successfully uninstalled setuptools-40.8.0
Successfully installed Markdown-2.1.1 Pygments-1.4 ansicolors-1.0.2 cffi-1.7.0 docutils-0.12 fasteners-0.14.1 futures-3.0.5 monotonic-1.5 packaging-16.8 pantsbuild.pants-1.3.0 pathspec-0.5.0 pex-1.2.6 psutil-4.3.0 pycparser-2.19 pyparsing-2.4.0 pystache-0.5.3 pywatchman-1.3.0 requests-2.5.3 scandir-1.2 setproctitle-1.1.10 setuptools-30.0.0 six-1.12.0 twitter.common.collections-0.3.11 twitter.common.confluence-0.3.11 twitter.common.dirutil-0.3.11 twitter.common.lang-0.3.11 twitter.common.log-0.3.11 twitter.common.options-0.3.11
New virtual environment successfully created at /Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27.
INFO] Attempting to fetch native_engine.so binary from: https://dl.bintray.com/pantsbuild/bin/build-support/bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so ...
Exception caught: (<class 'pants.binaries.binary_util.BinaryNotFound'>)

Exception message: Failed to fetch binary bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so from any source: (Failed to fetch binary from https://dl.bintray.com/pantsbuild/bin/build-support/bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so: Problem GETing data from https://dl.bintray.com/pantsbuild/bin/build-support/bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so: EOF occurred in violation of protocol (_ssl.c:590))

当我检查裤子异常日志时,我发现了如下跟踪:

args: ['/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/bin/pants', 'clean-all']
pid: 558
Exception caught: (<class 'pants.binaries.binary_util.BinaryNotFound'>)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/bin/pants", line 11, in <module>
    load_entry_point('pantsbuild.pants==1.3.0', 'console_scripts', 'pants')()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/pants_exe.py", line 44, in main
    PantsRunner(exiter).run()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/pants_runner.py", line 57, in run
    options_bootstrapper=options_bootstrapper)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/pants_runner.py", line 46, in _run
    return LocalPantsRunner(exiter, args, env, options_bootstrapper=options_bootstrapper).run()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 37, in run
    self._run()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/local_pants_runner.py", line 77, in _run
    self._exiter).setup()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/goal_runner.py", line 199, in setup
    goals, context = self._setup_context(pantsd_launcher)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/goal_runner.py", line 171, in _setup_context
    self._global_options.subproject_roots,
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/bin/goal_runner.py", line 98, in _init_graph
    native.set_panic_handler()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/engine/subsystem/native.py", line 754, in set_panic_handler
    self.lib.set_panic_handler()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/util/memo.py", line 101, in memoize
    result = func(*args, **kwargs)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/engine/subsystem/native.py", line 618, in lib
    return self.ffi.dlopen(self.binary)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/util/memo.py", line 101, in memoize
    result = func(*args, **kwargs)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/engine/subsystem/native.py", line 623, in ffi
    ffi = getattr(self._ffi_module, 'ffi')
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/util/memo.py", line 101, in memoize
    result = func(*args, **kwargs)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/engine/subsystem/native.py", line 635, in _ffi_module
    native_bin_dir = os.path.dirname(self.binary)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/util/memo.py", line 101, in memoize
    result = func(*args, **kwargs)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/engine/subsystem/native.py", line 613, in binary
    '{}.so'.format(NATIVE_ENGINE_MODULE))
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/binaries/binary_util.py", line 185, in select_binary
    return self._fetch_binary(name=name, binary_path=binary_path)
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/binaries/binary_util.py", line 205, in _fetch_binary
    with self._select_binary_stream(name, binary_path) as stream:
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/Users/.../.cache/pants/setup/bootstrap-Darwin-x86_64/1.3.0_py27/lib/python2.7/site-packages/pants/binaries/binary_util.py", line 172, in _select_binary_stream
    raise self.BinaryNotFound(binary_path, accumulated_errors)

Exception message: Failed to fetch binary bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so from any source: (Failed to fetch binary from https://dl.bintray.com/pantsbuild/bin/build-support/bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so: Problem GETing data from https://dl.bintray.com/pantsbuild/bin/build-support/bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so: EOF occurred in violation of protocol (_ssl.c:590))

裤子.ini文件的内容是

$cat pants.ini 
[GLOBAL]
pants_version: 1.3.0

路径https://dl.bintray.com/pantsbuild/bin/build-support/bin/native-engine/mac/10.12/af2e5b09cb7eee743c8d4e065258ac046c8a19ac/native_engine.so是有效路径。

PyOpenSSL,ndg-httpsclient等软件包也是最新的。

我不确定此错误的根本原因。我将不胜感激任何帮助/指导。谢谢。

0 个答案:

没有答案