无法在Linux中启动Jupyter实验

时间:2019-01-29 19:33:23

标签: python jupyter jupyter-lab

我正在尝试在linux系统中启动Jupyter实验室,但是它抛出以下错误

  

socket.gaierror:[Errno -2]名称或服务未知

我试图对此进行完全研究,但无法解决。

它一直工作到上周

我正在使用的命令:

jupyter lab --port 6095

我得到的错误:

(vigenv) [vxp1gwa@goxsd5107 pynotebooks]$ jupyter lab --port 6095
Traceback (most recent call last):
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/traitlets/traitlets.py", line 528, in get
    value = obj._trait_values[self.name]
KeyError: 'allow_remote_access'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/notebook/notebookapp.py", line 864, in _default_allow_remote
    addr = ipaddress.ip_address(self.ip)
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/ipaddress.py", line 54, in ip_address
    address)
ValueError: '' does not appear to be an IPv4 or IPv6 address

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/data/anaconda/Anaconda/envs/vigenv/bin/jupyter-lab", line 11, in <module>
    sys.exit(main())
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-7>", line 2, in initialize
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/notebook/notebookapp.py", line 1628, in initialize
    self.init_webapp()
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/jupyterlab/labapp.py", line 353, in init_webapp
    super().init_webapp(*args, **kwargs)
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/notebook/notebookapp.py", line 1378, in init_webapp
    self.jinja_environment_options,
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/notebook/notebookapp.py", line 159, in __init__
    default_url, settings_overrides, jinja_env_options)
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/notebook/notebookapp.py", line 252, in init_settings
    allow_remote_access=jupyter_app.allow_remote_access,
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/traitlets/traitlets.py", line 556, in __get__
    return self.get(obj, cls)
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/traitlets/traitlets.py", line 535, in get
    value = self._validate(obj, dynamic_default())
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/site-packages/notebook/notebookapp.py", line 867, in _default_allow_remote
    for info in socket.getaddrinfo(self.ip, self.port, 0, socket.SOCK_STREAM):
  File "/opt/data/anaconda/Anaconda/envs/vigenv/lib/python3.7/socket.py", line 748, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

0 个答案:

没有答案