Skip to content

websocket closing and/or on-open error #104

Closed
@ebrevdo

Description

@ebrevdo

On OS X, running emacs/ein via:

$ EMACS=/usr/local/Cellar/emacs/HEAD/Emacs.app/Contents/MacOS/Emacs lisp/zeroein.el

Steps to reproduce the problem

  1. Start emacs
  2. Run ein:notebooklist-open
  3. Select a notebook and hit "Open"

Expected output

The notebook opens, no error messages.

Your EIN configuration (in .emacs.d/init.el or somewhere else)

using zeroein

Your IPython configuration

  1. What is your IPython version? (run ipython --version):

$ ipython --version
0.13.1

  1. How do you start IPython? (e.g., ipython notebook --port 9999):

ipython notebook

  1. What is your IPython notebook port number or URL?:

localhost:8888

Additional information (if any)

ipython + zmq installed installed by pip. zeromq=3.2.2 installed via
brew (pyzmq uses this version). tornado in ipython version 2.4.1,
pyzmq version 13.0.0.

System info:

("EIN system info"
 :emacs-version
 "GNU Emacs 24.3.50.1 (i386-apple-darwin11.4.2, NS apple-appkit-1138.51)
 of 2013-02-21 on eugbook.local"
 :emacs-bzr-version nil
 :window-system ns
 :emacs-variant nil
 :os
 (:uname
  "Darwin eugbook.local 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
"
  :lsb-release nil)
 :image-types
 (png gif tiff jpeg xpm xbm pbm)
 :image-types-available
 (png gif tiff jpeg xpm xbm pbm)
 :request
 (:backend curl)
 :ein
 (:version "0.2.1alpha2.e5b53e5"
       :source-dir "/tmp/emacs-ipython-notebook/lisp/")
 :lib
 ((:name "websocket"
     :path "/tmp/emacs-ipython-notebook/lib/websocket/websocket.el"
     :featurep t
     :version-var websocket-version
     :version "0.93.1")
  (:name "request"
     :path "/tmp/emacs-ipython-notebook/lib/request/request.el"
     :featurep t
     :version-var request-version
     :version "0.2.0alpha1")
  (:name "auto-complete"
     :path "/tmp/emacs-ipython-notebook/lib/auto-complete/auto-complete.el"
     :featurep t
     :version-var nil
     :version nil)
  (:name "mumamo"
     :path "/tmp/emacs-ipython-notebook/lib/nxhtml/util/mumamo.el"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "auto-complete"
     :path "/tmp/emacs-ipython-notebook/lib/auto-complete/auto-complete.el"
     :featurep t
     :version-var nil
     :version nil)
  (:name "popup"
     :path "/tmp/emacs-ipython-notebook/lib/popup/popup.el"
     :featurep t
     :version-var nil
     :version nil)
  (:name "fuzzy"
     :path "/tmp/emacs-ipython-notebook/lib/fuzzy/fuzzy.el"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "pos-tip"
     :path "/tmp/emacs-ipython-notebook/lib/pos-tip/pos-tip.el"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "python"
     :path "/tmp/emacs-ipython-notebook/lib/python/python.el"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "markdown-mode"
     :path "/tmp/emacs-ipython-notebook/lib/markdown-mode/markdown-mode.el"
     :featurep nil
     :version-var nil
     :version nil)
  (:name "smartrep"
     :path "/tmp/emacs-ipython-notebook/lib/smartrep/smartrep.el"
     :featurep nil
     :version-var nil
     :version nil)))
  1. Log and Backtrace

Messages

debug-on-error=t websocket-debug=t websocket-callback-debug-on-error=nil ein:debug=t ein:log-level=debug ein:log-message-level=verbose
ein: [info] Opening notebook 62a49637-6b89-454d-bd2f-2ccf94e89fa1...
ein: [info] Worksheet Untitled0 is ready
Making mumamo-bug-3467-w14 local to temp while let-bound!
Tested for Bug 3467 => PASSED
ein: [info] Notebook Untitled0 is ready
ein: [info] Kernel started: bbbb69e9-11e1-4b50-ae1d-97f829d6a06b
ein: [info] Starting WS: "ws://127.0.0.1:8888/kernels/bbbb69e9-11e1-4b50-ae1d-97f829d6a06b"
Error found in callback on-open': [cl-struct-websocket-frame text {"header":{"msg_id":"ca13c350-904d-4d01-9c00-5704851e363d","username":"username","session":"c4df7ad1-167e-4eda-8e7e-b1f592d6e8d9","msg_type":"execute_request"},"metadata":{},"content":{"code":"__import__('sys').stdout.write(__import__('os').getcwd())","silent":true,"user_variables":[],"user_expressions":{},"allow_stdin":false},"parent_header":{}} nil t] Error found in callbackon-open': (ein:$websocket-onopen accessing a non-ein:$websocket)
Mark set [3 times]

websocket ws:///..../shell debug

[WS] Sending handshake, key: ZmplzHUA5XVNauqzmDppSA==, acceptance: j3zAZFvRpdQxQyRGIH7NORDvUfk=
[WS] Websocket opened
[WS] Received: HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: j3zAZFvRpdQxQyRGIH7NORDvUfk=

[WS] Checking for accept header: Sec-WebSocket-Accept: j3zAZFvRpdQxQyRGIH7NORDvUfk=
[WS] Checking for upgrade header
[WS] Checking for connection header
[WS] Sending frame, opcode: text payload: username=
[WS] Sending frame, opcode: text payload: {"header":{"msg_id":"ca13c350-904d-4d01-9c00-5704851e363d","username":"username","session":"c4df7ad1-167e-4eda-8e7e-b1f592d6e8d9","msg_type":"execute_request"},"metadata":{},"content":{"code":"import('sys').stdout.write(import('os').getcwd())","silent":true,"user_variables":[],"user_expressions":{},"allow_stdin":false},"parent_header":{}}
[WS] Closing websocket
[WS] State change to deleted

[WS] Sending handshake, key: IfcUBziTB2WzxAzQkfbczg==, acceptance: JC5x68G56ATrQ6hOHzc5aREqIZc=
[WS] Websocket opened
[WS] Received: HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: JC5x68G56ATrQ6hOHzc5aREqIZc=

[WS] Checking for accept header: Sec-WebSocket-Accept: JC5x68G56ATrQ6hOHzc5aREqIZc=
[WS] Checking for upgrade header
[WS] Checking for connection header

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions