14

In an ubuntu terminal window when the notebook is starting this error is raised. Could anybody explain this error

KeyError: 3
ERROR:root:Exception in I/O handler for fd 3
Traceback (most recent call last):
 File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 330, in start
 self._handlers[fd](fd, events)
holdenweb
37.8k7 gold badges62 silver badges80 bronze badges
asked Jul 17, 2014 at 5:04
1
  • I've google around and this seems to be a problem relating to SSL. Is there anything unusual about the way you installed ipython? Also please provide details about your OS and anything else might be relevant Commented Jul 17, 2014 at 6:50

1 Answer 1

15

I had to upgrade pyzmq to get it working:

sudo pip install pyzmq --upgrade

If the problem still persists try upgrading the rest of the libraries which are:

sudo pip install jinja2
sudo pip install tornado

If you don't wanna be messing around with these libraries you could run a virtual environment and install everything there. Here is the documentation: http://docs.python-guide.org/en/latest/dev/virtualenvs/

Hope it helps, cheers!

answered Jul 24, 2014 at 15:35
Sign up to request clarification or add additional context in comments.

1 Comment

I had the same problem, and upgrading pyzmq as you did above seemed to fix it for me (I was forced to upgrade tornado before this problem was encountered actually).

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.