Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ipython笔记本:socket.gaierror:[Errno 8]提供了节点名或服务器名,或未知_Python_Ipython_Anaconda - Fatal编程技术网

ipython笔记本:socket.gaierror:[Errno 8]提供了节点名或服务器名,或未知

ipython笔记本:socket.gaierror:[Errno 8]提供了节点名或服务器名,或未知,python,ipython,anaconda,Python,Ipython,Anaconda,我正在运行MacOSX10.10.3,所有与Python相关的内容都是使用Anaconda和Python3进行设置的。我正在使用iPython3.0.0和Python 3.4.3。以下是我尝试运行ipython notebook命令时不断出现的错误消息: shermmac:~ brandonsherman$ ipython notebook [I 16:40:57.969 NotebookApp] Using existing profile dir: '/Users/brandonsherma

我正在运行MacOSX10.10.3,所有与Python相关的内容都是使用Anaconda和Python3进行设置的。我正在使用iPython3.0.0和Python 3.4.3。以下是我尝试运行
ipython notebook
命令时不断出现的错误消息:

shermmac:~ brandonsherman$ ipython notebook
[I 16:40:57.969 NotebookApp] Using existing profile dir: '/Users/brandonsherman/.ipython/profile_default'
[I 16:40:57.974 NotebookApp] Using MathJax from CDN: https://cdn.mathjax.org/mathjax/latest/MathJax.js
Traceback (most recent call last):
  File "/Users/brandonsherman/anaconda/bin/ipython", line 6, in <module>
    sys.exit(start_ipython())
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/__init__.py", line 120, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 573, in launch_instance
    app.initialize(argv)
  File "<string>", line 2, in initialize
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/terminal/ipapp.py", line 321, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/core/application.py", line 369, in initialize
    self.parse_command_line(argv)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/terminal/ipapp.py", line 316, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "<string>", line 2, in parse_command_line
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 471, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "<string>", line 2, in initialize_subcommand
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 409, in initialize_subcommand
    self.subapp.initialize(argv)
  File "<string>", line 2, in initialize
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/html/notebookapp.py", line 980, in initialize
    self.init_webapp()
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/IPython/html/notebookapp.py", line 842, in init_webapp
    self.http_server.listen(port, self.ip)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/tornado/tcpserver.py", line 125, in listen
    sockets = bind_sockets(port, address=address)
  File "/Users/brandonsherman/anaconda/lib/python3.4/site-packages/tornado/netutil.py", line 106, in bind_sockets
    0, flags)):
  File "/Users/brandonsherman/anaconda/lib/python3.4/socket.py", line 533, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    c.Application.verbose_crash=True
shermmac:~brandonsherman$ipython笔记本
[I 16:40:57.969 NotebookApp]使用现有配置文件目录:'/Users/brandonsherman/.ipython/profile_default'
[I 16:40:57.974 NotebookApp]使用CDN中的MathJax:https://cdn.mathjax.org/mathjax/latest/MathJax.js
回溯(最近一次呼叫最后一次):
文件“/Users/brandonsherman/anaconda/bin/ipython”,第6行,在
sys.exit(start_ipython())
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/_init__.py”,第120行,在start_IPython中
返回启动新实例(argv=argv,**kwargs)
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第573行,在launch_实例中
应用程序初始化(argv)
文件“”,第2行,在初始化中
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第75行,在catch_config_error中
返回方法(应用程序、*args、**kwargs)
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/terminal/ipapp.py”,第321行,在初始化中
super(TerminalIPythonApp,self).initialize(argv)
文件“”,第2行,在初始化中
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第75行,在catch_config_error中
返回方法(应用程序、*args、**kwargs)
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/core/application.py”,第369行,在初始化中
self.parse_命令行(argv)
parse_命令行中的文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/terminal/ipapp.py”,第316行
返回super(TerminalIPythonApp,self).parse_命令行(argv)
文件“”,第2行,在parse_命令行中
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第75行,在catch_config_error中
返回方法(应用程序、*args、**kwargs)
parse_命令行中的文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第471行
返回self.initialize_子命令(subc,subragv)
文件“”,第2行,在initialize_子命令中
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第75行,在catch_config_error中
返回方法(应用程序、*args、**kwargs)
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第409行,在initialize_子命令中
self.subapp.initialize(argv)
文件“”,第2行,在初始化中
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/config/application.py”,第75行,在catch_config_error中
返回方法(应用程序、*args、**kwargs)
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/html/notebookapp.py”,第980行,在初始化中
self.init_webapp()
init_webapp中的文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/IPython/html/notebookapp.py”,第842行
self.http_server.listen(端口,self.ip)
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/tornado/tcpserver.py”,第125行,在listen中
套接字=绑定\u套接字(端口,地址=地址)
文件“/Users/brandonsherman/anaconda/lib/python3.4/site packages/tornado/netutil.py”,第106行,在bind_套接字中
0,标志):
文件“/Users/brandonsherman/anaconda/lib/python3.4/socket.py”,第533行,在getaddrinfo中
对于_socket.getaddrinfo(主机、端口、系列、类型、协议、标志)中的res:
socket.gaierror:[Errno 8]提供了节点名或服务名,或者未知
如果您怀疑这是IPython错误,请在以下地址报告:
https://github.com/ipython/ipython/issues
或者向ipython的邮件列表发送电子邮件-dev@scipy.org
您可以立即使用“%tb”打印更详细的回溯,或使用“%debug”
以交互方式调试它。
可通过以下方式启用用于错误报告目的的额外详细回溯:
c、 Application.verbose\u crash=True

当它尝试绑定您无法使用浏览器连接到IPython笔记本的端口时失败。检查您是否未更改笔记本电脑网络设置。检查您是否没有防火墙或类似的防火墙来阻止网络。这很奇怪。我没有更改设置,也没有重新启动,它突然又开始工作了。我应该关闭这个问题,还是让它打开,以防将来有人想出解决方案?你可以回答你自己的问题-也许其他人以后也会有同样的问题。我怀疑的是,操作系统出现了某种网络错误,并从中恢复过来。