【问题标题】:Unable to resolve “Error: Git server extension is unavailable.” for Pytorch jupyter notebook无法解决“错误:Git 服务器扩展不可用”。用于 Pytorch jupyter 笔记本
【发布时间】: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


【解决方案1】:

作为链接[1],这是一个已知问题,并在新发布的图像(m47)[2]中得到解决:

[1]Unable to resolve "Error: Git server extension is unavailable." (Google Notebooks)

[2]https://cloud.google.com/ai-platform/deep-learning-vm/docs/release-notes

【讨论】:

  • 在链接 [2] 中,m47 的发行说明说“修复了 TensorFlow 2 图像中的 git 扩展插件问题。”。它似乎仅适用于 TF 图像。顺便说一句,我正在使用 Pytorch 图像。
  • 我认为我们在 Base 中修复了它,其中包括 PyTorch。您尝试了新图像并进行了测试吗?
猜你喜欢
  • 2020-08-28
  • 2019-07-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-04-05
  • 2022-10-17
相关资源
最近更新 更多