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
-
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 relevantyuvi– yuvi2014年07月17日 06:50:07 +00:00Commented Jul 17, 2014 at 6:50
1 Answer 1
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
comrad
7691 gold badge5 silver badges13 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
gammapoint
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).
lang-py