我们在 Dataflow 作业部署期间遇到了问题。
我们正在使用 CustomCommands 在 worker 上安装私有 repo,但现在worker-startup我们的作业日志中出现错误:
Running command: ['pip', 'install', 'git+ssh://git@github.com/my_private_repo.git@v1.0.0']
Command output: b'Traceback (most recent call last):
File "/usr/local/bin/pip", line 6, in <module>
from pip._internal import main\nModuleNotFoundError: No module named \'pip\'\n'
Run Code Online (Sandbox Code Playgroud)
这段代码是有效的,但自从我们上次在周五部署该服务以来,它就没有了。
setup.py在工作人员启动期间运行的自定义命令。(来自官方仓库的代码示例在这里)pip install git+ssh://git@github.com/my_private_repo.git@v1.0.0(请参阅下面的命令)Running command: ['pip', 'install', 'git+ssh://git@github.com/my_private_repo.git@v1.0.0']
Command output: b'Traceback (most recent call last):
File "/usr/local/bin/pip", …Run Code Online (Sandbox Code Playgroud)