0

当我尝试在未连接到 Internet 的情况下从 EPD 的 Canopy 启动 ipython 笔记本时,笔记本在启动前会崩溃。连接到网络时不会发生这种情况。

任何帮助都将受到欢迎。

接下来是简短的故障转储。c.Application.verbose_crash=True可以在此处找到配置文件中设置的完整转储https://gist.github.com/xaverm/6873969

短转储

~>.Canopy/EPDenvironment/bin/ipython notebook
[NotebookApp] Using existing profile dir: u'/home/xuserx/.ipython/profile_default'
[NotebookApp] Serving notebooks from /home/xuserx
Traceback (most recent call last):
  File ".Canopy/EPDenvironment/bin/ipython", line 10, in <module>
    sys.exit(launch_new_instance())
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 401, in launch_new_instance
    app.initialize()
  File "<string>", line 2, in initialize
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 313, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/core/application.py", line 325, in initialize
    self.parse_command_line(argv)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 308, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "<string>", line 2, in parse_command_line
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/config/application.py", line 420, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "<string>", line 2, in initialize_subcommand
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/config/application.py", line 359, in initialize_subcommand
    self.subapp.initialize(argv)
  File "<string>", line 2, in initialize
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/config/application.py", line 84, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/frontend/html/notebook/notebookapp.py", line 532, in initialize
    self.init_webapp()
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/IPython/frontend/html/notebook/notebookapp.py", line 450, in init_webapp
    self.http_server.listen(port, self.ip)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/tornado/netutil.py", line 100, in listen
    sockets = bind_sockets(port, address=address)
  File "/home/xuserx/.Canopy/EPDenvironment/lib/python2.7/site-packages/tornado/netutil.py", line 248, in bind_sockets
    0, flags)):
gaierror: [Errno -9] Address family for hostname not supported
4

1 回答 1

0

这个问题应该被认为是关闭的:即使在完整的 Canopy 重新安装和更新之后,独立的 ipython 笔记本从生成的目录之外启动,~/Canopy/canopy_cli setup如上所述如果主机未连接到网络,http://docs.enthought.com/canopy/configure/canopy-cli.html仍然会崩溃。但是,从现在开始的 ipython 笔记本.Canopy/Enthought/Canopy_64bit/User/bin/ipython也可以在与网络断开连接的情况下使用。没关系。为了我。

于 2013-10-08T22:03:01.390 回答