小编ghe*_*iev的帖子

Python 无法连接到 grpc 通道 ->“无法连接到所有地址”“grpc_status”:14

尝试调用存根方法时出现以下错误。知道是什么原因造成的吗?

[bolt.api.handlers] 2019-08-21 20:07:57,792 ERROR handlers:1066: 'ResourceHandler' object has no attribute 'ontology_service_handler'
Traceback (most recent call last):
  File "/bolt-webserver/bolt/api/onse/onse_handlers/ontology_service.py", line 17, in post
    ontology_id = await self.onse_stub.createOntology()
  File "/bolt-webserver/bolt/api/onse/onse_stub.py", line 41, in createOntology
    return self.stub.CreateOntology(ontology_messages_pb2.Ontology())
  File "/usr/local/lib/python3.6/site-packages/grpc/_channel.py", line 565, in __call__
    return _end_unary_response_blocking(state, call, False, None)
  File "/usr/local/lib/python3.6/site-packages/grpc/_channel.py", line 467, in _end_unary_response_blocking
    raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "failed to connect to all addresses"
        debug_error_string = "{"created":"@1566418077.791002345","description":"Failed to pick …
Run Code Online (Sandbox Code Playgroud)

python grpc grpc-python

19
推荐指数
2
解决办法
2万
查看次数

有什么方法可以强制 pip install 在需求安装失败时重试?

我正在尝试在我构建的容器中安装一些 pip 要求。但是由于我的设置(docker build 在通过 VPN 连接到 git 服务器所在网络的系统上的 VM 中运行。COVID-19 情况)我收到以下错误。我知道问题是由我的设置引起的,因为有时工作正常。另外,如果我在与 git 服务器位于同一网络内的机器上运行相同的 docker build,也可以正常工作。我花了一些时间试图找出我的网络问题,但还没有找到任何合适的解决方案。所以知道有一段时间 pin install git clone 工作,我想知道是否有任何方法可以指示 pip 重试安装失败的组件,直到它成功?

这就是我调用 pip install 的方式:

pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
Run Code Online (Sandbox Code Playgroud)

git lab repo URL 在 requirements.txt 中正确定义

谢谢

Collecting git+https://gitlab%2Bdeploy-token-98:****@git.my.host.com/core-tech/tools/nlu/trsx-converter.git@0.0.3 (from -r requirements.txt (line 19))
  Cloning https://gitlab%2Bdeploy-token-98:****@git.my.host.com/core-tech/tools/nlu/trsx-converter.git (to revision 0.0.3) to /tmp/pip-req-build-t8m2io14
  Running command git clone -q 'https://gitlab%2Bdeploy-token-98:****@git.my.host.com/core-tech/tools/nlu/trsx-converter.git' /tmp/pip-req-build-t8m2io14
  fatal: unable to access 'https://git.my.host.com/core-tech/tools/nlu/trsx-converter.git/': The requested URL returned error: 511                                                                                                       
ERROR: Command errored out with exit status …
Run Code Online (Sandbox Code Playgroud)

python git pip gitlab

4
推荐指数
1
解决办法
1636
查看次数

标签 统计

python ×2

git ×1

gitlab ×1

grpc ×1

grpc-python ×1

pip ×1