Advertisement
Guest User

Ipython zmq error

a guest
Jul 3rd, 2013
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.05 KB | None | 0 0
  1. # ipython notebook --pylab=inline
  2. [NotebookApp] Using existing profile dir: u'/root/.config/ipython/profile_default'
  3. [NotebookApp] Serving notebooks from /media/disk2/Projects/SPSE
  4. [NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8888/
  5. [NotebookApp] Use Control-C to stop this server and shut down all kernels.
  6. [NotebookApp] Using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js
  7. [NotebookApp] Kernel started: 093daf3d-ca3f-46b3-aee3-796880a9785d
  8. Exception in thread Thread-2:
  9. Traceback (most recent call last):
  10.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/threading.py", line 551, in __bootstrap_inner
  11.     self.run()
  12.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/kernelmanager.py", line 197, in run
  13.     self.socket = self.context.socket(zmq.DEALER)
  14.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/zmq/sugar/context.py", line 82, in socket
  15.     s = self._socket_class(self, socket_type)
  16.   File "socket.pyx", line 210, in zmq.core.socket.Socket.__cinit__ (zmq/core/socket.c:2270)
  17. ZMQError: Bad address
  18.  
  19. ERROR:root:Uncaught exception in /kernels/093daf3d-ca3f-46b3-aee3-796880a9785d/shell
  20. Traceback (most recent call last):
  21.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/tornado/websocket.py", line 254, in wrapper
  22.     return callback(*args, **kwargs)
  23.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/handlers.py", line 567, in on_first_message
  24.     self.shell_stream = km.create_shell_stream(kernel_id)
  25.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py", line 332, in create_shell_stream
  26.     return super(MappingKernelManager, self).create_shell_stream(kernel_id)
  27.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py", line 209, in create_shell_stream
  28.     shell_stream = self.create_connected_stream(ip, ports['shell_port'], zmq.DEALER)
  29.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py", line 193, in create_connected_stream
  30.     sock = self.context.socket(socket_type)
  31.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/zmq/sugar/context.py", line 82, in socket
  32.     s = self._socket_class(self, socket_type)
  33.   File "socket.pyx", line 210, in zmq.core.socket.Socket.__cinit__ (zmq/core/socket.c:2270)
  34. ZMQError: Bad address
  35. ERROR:root:Uncaught exception in /kernels/093daf3d-ca3f-46b3-aee3-796880a9785d/iopub
  36. Traceback (most recent call last):
  37.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/tornado/websocket.py", line 254, in wrapper
  38.     return callback(*args, **kwargs)
  39.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/handlers.py", line 469, in on_first_message
  40.     self.iopub_stream = km.create_iopub_stream(kernel_id)
  41.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py", line 327, in create_iopub_stream
  42.     return super(MappingKernelManager, self).create_iopub_stream(kernel_id)
  43.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py", line 202, in create_iopub_stream
  44.     iopub_stream = self.create_connected_stream(ip, ports['iopub_port'], zmq.SUB)
  45.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py", line 193, in create_connected_stream
  46.     sock = self.context.socket(socket_type)
  47.   File "/opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/zmq/sugar/context.py", line 82, in socket
  48.     s = self._socket_class(self, socket_type)
  49.   File "socket.pyx", line 210, in zmq.core.socket.Socket.__cinit__ (zmq/core/socket.c:2270)
  50. ZMQError: Bad address
  51. ---------------------------------------------------------------------------
  52. ZMQError                                  Traceback (most recent call last)
  53. <string> in <module>()
  54.  
  55. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/ipkernel.pyc in main()
  56.     927     """Run an IPKernel as an application"""
  57.     928     app = IPKernelApp.instance()
  58. --> 929     app.initialize()
  59.         app.initialize = <bound method IPKernelApp.initialize of <IPython.zmq.ipkernel.IPKernelApp object at 0x96364ac>>
  60.     930     app.start()
  61.     931
  62.  
  63. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/ipkernel.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)
  64.  
  65. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/config/application.pyc in catch_config_error(method=<function initialize>, app=<IPython.zmq.ipkernel.IPKernelApp object>, *args=(None,), **kwargs={})
  66.      82     """
  67.     83     try:
  68. ---> 84         return method(app, *args, **kwargs)
  69.        method = <function initialize at 0x963833c>
  70.        app = <IPython.zmq.ipkernel.IPKernelApp object at 0x96364ac>
  71.        args = (None,)
  72.        kwargs = {}
  73.     85     except (TraitError, ArgumentError) as e:
  74.     86         app.print_description()
  75.  
  76. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/ipkernel.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)
  77.    813     @catch_config_error
  78.    814     def initialize(self, argv=None):
  79. --> 815         super(IPKernelApp, self).initialize(argv)
  80.        global super = undefined
  81.        global IPKernelApp = <class 'IPython.zmq.ipkernel.IPKernelApp'>
  82.        self.initialize = <bound method IPKernelApp.initialize of <IPython.zmq.ipkernel.IPKernelApp object at 0x96364ac>>
  83.        argv = None
  84.    816         self.init_path()
  85.    817         self.init_shell()
  86.  
  87. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/kernelapp.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)
  88.  
  89. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/config/application.pyc in catch_config_error(method=<function initialize>, app=<IPython.zmq.ipkernel.IPKernelApp object>, *args=(None,), **kwargs={})
  90.     82     """
  91.      83     try:
  92. ---> 84         return method(app, *args, **kwargs)
  93.         method = <function initialize at 0x90bf924>
  94.         app = <IPython.zmq.ipkernel.IPKernelApp object at 0x96364ac>
  95.         args = (None,)
  96.         kwargs = {}
  97.      85     except (TraitError, ArgumentError) as e:
  98.      86         app.print_description()
  99.  
  100. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/kernelapp.pyc in initialize(self=<IPython.zmq.ipkernel.IPKernelApp object>, argv=None)
  101.     310         self.init_session()
  102.     311         self.init_poller()
  103. --> 312         self.init_sockets()
  104.         self.init_sockets = <bound method IPKernelApp.init_sockets of <IPython.zmq.ipkernel.IPKernelApp object at 0x96364ac>>
  105.     313         self.init_heartbeat()
  106.     314         # writing/displaying connection info must be *after* init_sockets/heartbeat
  107.  
  108. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/IPython/zmq/kernelapp.pyc in init_sockets(self=<IPython.zmq.ipkernel.IPKernelApp object>)
  109.     222         # atexit.register(context.term)
  110.     223
  111. --> 224         self.shell_socket = context.socket(zmq.ROUTER)
  112.         self.shell_socket = undefined
  113.         context.socket = <bound method Context.socket of <zmq.sugar.context.Context object at 0x969df44>>
  114.         global zmq.ROUTER = 6
  115.     225         self.shell_port = self._bind_socket(self.shell_socket, self.shell_port)
  116.     226         self.log.debug("shell ROUTER Channel on port: %i"%self.shell_port)
  117.  
  118. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/zmq/sugar/context.pyc in socket(self=<zmq.sugar.context.Context object>, socket_type=6)
  119.      80         if self.closed:
  120.      81             raise ZMQError(ENOTSUP)
  121. ---> 82         s = self._socket_class(self, socket_type)
  122.         s = undefined
  123.         self._socket_class = <class 'zmq.sugar.socket.Socket'>
  124.         self = <zmq.sugar.context.Context object at 0x969df44>
  125.         socket_type = 6
  126.      83         for opt, value in self.sockopts.items():
  127.      84             try:
  128.  
  129. /opt/epd-7.3-2-rh5-x86/lib/python2.7/site-packages/zmq/core/socket.so in zmq.core.socket.Socket.__cinit__ (zmq/core/socket.c:2270)()
  130.  
  131. ZMQError: Bad address
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement