socket.error: socket.error: [Errno 49] Can't assign requested address

2,778 views
Skip to first unread message

Gautam Anand

unread,
Mar 22, 2016, 1:49:40 AM3/22/16
to Project Jupyter
Dear Experts,

I installed jupyter notebook on a fresh mac and it worked fine.
But after a while, it stopped working with no fiddling around with anything at all.

Following are the details and log messages i see.

Mac Version: Yosemite OSX 10.10.5
Python Version: 2.7.10
Error Message:

localhost:~ ganand$ jupyter notebook

Traceback (most recent call last):

  File "/usr/local/bin/jupyter-notebook", line 11, in <module>

    sys.exit(main())

  File "/Library/Python/2.7/site-packages/jupyter_core/application.py", line 267, in launch_instance

    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)

  File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 595, in launch_instance

    app.initialize(argv)

  File "<decorator-gen-7>", line 2, in initialize

  File "/Library/Python/2.7/site-packages/traitlets/config/application.py", line 74, in catch_config_error

    return method(app, *args, **kwargs)

  File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 1023, in initialize

    self.init_webapp()

  File "/Library/Python/2.7/site-packages/notebook/notebookapp.py", line 887, in init_webapp

    self.http_server.listen(port, self.ip)

  File "/Library/Python/2.7/site-packages/tornado/tcpserver.py", line 126, in listen

    sockets = bind_sockets(port, address=address)

  File "/Library/Python/2.7/site-packages/tornado/netutil.py", line 196, in bind_sockets

    sock.bind(sockaddr)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth

    return getattr(self._sock,name)(*args)

socket.error: [Errno 49] Can't assign requested address


can someone please help me what i might be doing wrong?


Regards,

Gautam


Gautam Anand

unread,
Mar 22, 2016, 2:05:14 AM3/22/16
to Project Jupyter
Ok I solved it..

changed my command to this

jupyter notebook --ip=127.0.0.1

Regards,
Gautam
Message has been deleted

aicol...@gmail.com

unread,
Jun 3, 2018, 2:22:01 AM6/3/18
to Project Jupyter
thanks for you , Solve the problem perfectly

在 2016年3月22日星期二 UTC+8下午2:05:14,Gautam Anand写道:
Reply all
Reply to author
Forward
0 new messages