[IPython-User] zmq probs after recent update?

K.-Michael Aye kmichael.aye@gmail....
Tue Mar 5 17:25:59 CST 2013


Did anyone else notice a change in their notebooks after the recent EPD 
releasy of pyzmq?

I now get intermittently this kind of stuff (attached).

Cheers,
Michael


---------------------------------------------------------------------------
ZMQError                                  Traceback (most recent call last)
<string> in <module>()

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/ipkernel.py 
in main()
    915     """Run an IPKernel as an application"""
    916     app = IPKernelApp.instance()
--> 917     app.initialize()
        app.initialize = <bound method IPKernelApp.initialize of 
<IPython.zmq.ipkernel.IPKernelApp object at 0x1081f1ed0>>
    918     app.start()
    919

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/ipkernel.py 
in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/config/application.py 
in catch_config_error(method=<function initialize>, 
app=<IPython.zmq.ipkernel.IPKernelApp object>, *args=(None,), 
**kwargs={})
     82     """
     83     try:
---> 84         return method(app, *args, **kwargs)
        method = <function initialize at 0x1081f29b0>
        app = <IPython.zmq.ipkernel.IPKernelApp object at 0x1081f1ed0>
        args = (None,)
        kwargs = {}
     85     except (TraitError, ArgumentError) as e:
     86         app.print_description()

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/ipkernel.py 
in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)
    801     @catch_config_error
    802     def initialize(self, argv=None):
--> 803         super(IPKernelApp, self).initialize(argv)
        global super = undefined
        global IPKernelApp = <class 'IPython.zmq.ipkernel.IPKernelApp'>
        self.initialize = <bound method IPKernelApp.initialize of 
<IPython.zmq.ipkernel.IPKernelApp object at 0x1081f1ed0>>
        argv = None
    804         self.init_path()
    805         self.init_shell()

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/kernelapp.py 
in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/config/application.py 
in catch_config_error(method=<function initialize>, 
app=<IPython.zmq.ipkernel.IPKernelApp object>, *args=(None,), 
**kwargs={})
     82     """
     83     try:
---> 84         return method(app, *args, **kwargs)
        method = <function initialize at 0x101ccfed8>
        app = <IPython.zmq.ipkernel.IPKernelApp object at 0x1081f1ed0>
        args = (None,)
        kwargs = {}
     85     except (TraitError, ArgumentError) as e:
     86         app.print_description()

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/kernelapp.py 
in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)
    310         self.init_session()
    311         self.init_poller()
--> 312         self.init_sockets()
        self.init_sockets = <bound method IPKernelApp.init_sockets of 
<IPython.zmq.ipkernel.IPKernelApp object at 0x1081f1ed0>>
    313         self.init_heartbeat()
    314         # writing/displaying connection info must be *after* 
init_sockets/heartbeat

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/kernelapp.py 
in init_sockets(self=<IPython.zmq.ipkernel.IPKernelApp object>)
    223
    224         self.shell_socket = context.socket(zmq.ROUTER)
--> 225         self.shell_port = self._bind_socket(self.shell_socket, 
self.shell_port)
        self.shell_port = 57183
        self._bind_socket = <bound method IPKernelApp._bind_socket of 
<IPython.zmq.ipkernel.IPKernelApp object at 0x1081f1ed0>>
        self.shell_socket = <zmq.core.socket.Socket object at 0x1081ee440>
    226         self.log.debug("shell ROUTER Channel on port: 
%i"%self.shell_port)
    227

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/IPython/zmq/kernelapp.py 
in _bind_socket(self=<IPython.zmq.ipkernel.IPKernelApp object>, 
s=<zmq.core.socket.Socket object>, port=57183)
    159             port = s.bind_to_random_port(iface)
    160         else:
--> 161             s.bind(iface + ':%i'%port)
        s.bind = <built-in method bind of zmq.core.socket.Socket object 
at 0x1081ee440>
        iface = u'tcp://127.0.0.1'
        port = 57183
    162         return port
    163

/Library/Frameworks/EPD64.framework/Versions/7.3/lib/python2.7/site-packages/zmq/core/socket.so 
in zmq.core.socket.Socket.bind (zmq/core/socket.c:4748)()

ZMQError: Address already in use

[NotebookApp] Kernel 2551b001-0e06-4a50-9192-a10faa0c4723 failed to 
respond to heartbeat





More information about the IPython-User mailing list