无法连接到本地运行时:加载服务器扩展时出错- [英] Unable to connect to a local runtime: Error loading server extension —

查看:23
本文介绍了无法连接到本地运行时:加载服务器扩展时出错-的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试连接到本地运行时来编辑Mask R-CNN model,但收到以下错误:Error loading server extension —

jupyter_http_over_ws extension initialized. Listening on /http_over_websocket
[I 00:48:59.298 NotebookApp] JupyterLab extension loaded from C:UsersIssstezac1anaconda3libsite-pack
agesjupyterlab
[I 00:48:59.298 NotebookApp] JupyterLab application directory is C:UsersIssstezac1anaconda3sharejupy
terlab
[W 00:48:59.314 NotebookApp] Error loading server extension —
    Traceback (most recent call last):
      File "C:UsersIssstezac1anaconda3libsite-packages
otebook
otebookapp.py", line 1670, in init_
server_extensions
        mod = importlib.import_module(modulename)
      File "C:UsersIssstezac1anaconda3libimportlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named '—'
[I 00:48:59.314 NotebookApp] Serving notebooks from local directory: C:
[I 00:48:59.314 NotebookApp] The Jupyter Notebook is running at:
[I 00:48:59.330 NotebookApp] http://localhost:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbfb974
5
[I 00:48:59.330 NotebookApp]  or http://127.0.0.1:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbf
b9745
[I 00:48:59.330 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip c
onfirmation).
[C 00:48:59.392 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/Issstezac1/AppData/Roaming/jupyter/runtime/nbserver-2716-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbfb9745
     or http://127.0.0.1:8888/?token=325c5ffe303c1c7b54b2639d3c6a256550411126dbfb9745
[W 00:50:09.451 NotebookApp] Blocking Cross Origin API request for /http_over_websocket.  Origin: https:/
/colab.research.google.com, Host: localhost:8888
[W 00:50:09.451 NotebookApp] 403 GET /http_over_websocket?min_version=0.0.7&jupyter_http_over_ws_auth_url
=http%3A%2F%2Flocalhost%3A8888%2F%3Ftoken%3D325c5ffe303c1c7b54b2639d3c6a256550411126dbfb9745 (::1) 0.00ms
 referer=None
[W 00:50:12.951 NotebookApp] Blocking Cross Origin API request for /http_over_websocket/diagnose.  Origin
: https://colab.research.google.com, Host: localhost:8888
[W 00:50:12.951 NotebookApp] 403 GET /http_over_websocket/diagnose?min_version=0.0.7 (::1) 0.00ms referer
=None

我按照文档中的每个step操作,但仍然无法在本地连接。目前,我使用的是Mozilla 77.0.1(64位)版本。因此,我启用了特定浏览器设置中提到的network.websocket.allowInsecureFromHTTPS。甚至我也按照Jupyter HTTP-over-WebSocket故障排除建议尝试了--no-browser标志。我做错了什么?

如有任何进一步的帮助,我们将不胜感激。

推荐答案

确保您计算机上的笔记本服务器正在端口8888上运行,并且正在接受来自https://colab.research.google.com的请求。

尝试以下命令

jupyter notebook 
  --NotebookApp.allow_origin='https://colab.research.google.com' 
  --port=8888 
  --NotebookApp.port_retries=0

这篇关于无法连接到本地运行时:加载服务器扩展时出错-的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆