Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Notebook] Ipython Kernel does not start if disconnected from internet(/network?) #3045

Closed
groakat opened this issue Mar 20, 2013 · 4 comments
Milestone

Comments

@groakat
Copy link

groakat commented Mar 20, 2013

Hi,

If I am not connected to the internet, I cannot execute "ipython notebook". sucessfully.

I get the following error.
gaierror: [Errno -9] Address family for hostname not supported

(full traceback here: http://pastebin.com/sfEgXay8)

If I am connected to the internet, everything works as expected. I do not have a network available that is not connected to the internet, to test if a network connection or internet is required. (I suspect its just a network connection that is required)

@minrk
Copy link
Member

minrk commented Mar 20, 2013

Do you have any IPython config? Try starting the notebook with --debug.

@groakat
Copy link
Author

groakat commented Mar 20, 2013

$ ipython notebook --debug
[NotebookApp] Config changed:
[NotebookApp] {'Application': {'log_level': 10}}
[NotebookApp] Using existing profile dir: u'/home/peter/.config/ipython/profile_default'
[NotebookApp] Searching path [u'/home/peter/code/pyTools/notebooks', u'/home/peter/.config/ipython/profile_default'] for config files
[NotebookApp] Attempting to load config file: ipython_config.py
[NotebookApp] Loaded config file: /home/peter/.config/ipython/profile_default/ipython_config.py
[NotebookApp] Attempting to load config file: ipython_notebook_config.py
[NotebookApp] Loaded config file: /home/peter/.config/ipython/profile_default/ipython_notebook_config.py
[NotebookApp] Serving notebooks from /home/peter/code/pyTools/notebooks
[NotebookApp] Adding cluster profile 'default'
... now traceback as before

I made one default profile (resides in ~/.config/ipython/profile_default/). I do not remember changing anything in this profile. But I am happy to provide any files you need. I had a script in startup (thats why I made the profile) but if I remove it from the startup directory, I still get the same error.

@minrk
Copy link
Member

minrk commented Mar 20, 2013

try:

from IPython.utils.localinterfaces import LOCALHOST, LOCAL_IPS, PUBLIC_IPS
print LOCALHOST, LOCAL_IPS, PUBLIC_IPS

@juliantaylor
Copy link
Contributor

this is due to the use of AI_ADDRCONFIG in tornado, see tornadoweb/tornado#593

@ivanov ivanov closed this as completed in 8ecb2fc Apr 10, 2013
minrk added a commit that referenced this issue Apr 10, 2013
fix `gaierror: [Errno -9] Address family for hostname not supported`

error from unassociated interfaces.

related to tornadoweb/tornado#593 - but the fix was only applied to 3.0

I've verified that this fix works for tornado 2.1, 2.4, 2.4.1, and the behavior it fixes does not trigger on tornado 3.0

closes #3045
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
related to tornadoweb/tornado#593

I've verified that this fix works for tornado 2.1, 2.4, 2.4.1, and the
behavior it fixes does not trigger on tornado 3.0
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
fix `gaierror: [Errno -9] Address family for hostname not supported`

error from unassociated interfaces.

related to tornadoweb/tornado#593 - but the fix was only applied to 3.0

I've verified that this fix works for tornado 2.1, 2.4, 2.4.1, and the behavior it fixes does not trigger on tornado 3.0

closes ipython#3045
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants