【发布时间】:2020-09-19 13:56:52
【问题描述】:
创建新的笔记本实例(VM 类型:Pytorch 1.4)后,打开时出现与 Git 服务器扩展相关的内部错误:
Internal Error:
Fail to get the server root path. Error: Git server extension is unavailable. Please ensure you have installed the JupyterLab Git server extension by running: pip install --upgrade jupyterlab-git. To confirm that the server extension is installed, run: jupyter serverextension list.
这意味着我不能使用返回的 Git 克隆按钮:
Clone failed:
JSON.parse: unexpected character at line 1 column 1 of the JSON data
当我尝试命令时,jupyter serverextension list,我发现 git 扩展被禁用了。
jupyterlab_git disabled
- Validating...
jupyterlab_git 0.10.1 OK
我按照建议尝试了“jupyter serverextension enable --py jupyterlab_git --sys-prefix”和“pip install --upgrade jupyterlab-git”,但这似乎没有解决任何问题。以下是我的笔记本实例设置(如果未指定,则为默认设置):
Region: us-west1 (Oregon)
Zone: us-west1-a
Environment: PyTorch 1.4 (with Intel® MKL-DNN/MKL and CUDA 10.1)
Machine type: n1-standard-4 (4vCPUs, 15 GB RAM)
GPU type: NVIDIA Tesla T4
Number of GPUs: 1
✓ Install NVIDA GPU driver automatically for me
这是否发生在其他人身上?我看到了一篇关于 TensorFlow VM(Unable to resolve "Error: Git server extension is unavailable." (Google Notebooks)) 的类似帖子,想知道是不是同样的场景?
【问题讨论】:
-
这个问题是否仍然与您相关,并且发布的解决方案是否也有效?
-
自最初创建问题以来,引入了大量深度学习 VM 映像。
标签: git google-cloud-platform jupyter-notebook gcp-ai-platform-notebook