-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening notebook with inline image result in error: ERROR:root:First ws message didn't have the form 'identity:[cookie]' - '' #121
Comments
Please use M-x ein:dev-bug-report-template to write a bug report. |
For what it is worth...It is working for me. Emacs version 24.3.1 and Python packages Best, On Fri, Jul 5, 2013 at 10:38 AM, Takafumi Arakaki
Evan Misshula "Instruction does much, but encouragement does everything." Johann Wolfgang |
Here is the bug report. Check list
Description of the problem you haveWhen I open a notebook with inline plots, I got the following messages and the notebook would not open in emacs: Contacting host: 127.0.0.1:8888 [2 times] On the ipython notebook server side, it says ERROR:root:First ws message didn't have the form 'identity:[cookie]' - '' Notebook without images would open, but server side displays the same error message. Running zeroein.el according to the quick try instruction result in the same error My installed packages are python 2.7.5 Steps to reproduce the problemOn Windows 7 Pro x64
Expected outputFor notebook with saved inline plots, it would not open in emacs. Your EIN configuration (in .emacs.d/init.el or somewhere else); use ein Your IPython configuration
Additional information (if any)System info:("EIN system info"
:emacs-version "GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
of 2013-03-17 on MARVIN"
:emacs-bzr-version nil
:window-system w32
:emacs-variant nil
:os
(:uname nil
:lsb-release nil)
:image-types
(png gif tiff jpeg xpm xbm pbm)
:image-types-available
(xpm xbm pbm)
:request
(:backend url-retrieve)
:ein
(:version "0.2.1alpha2"
:source-dir "d:/HOME/.emacs.d/elpa/ein-20130611.1651/")
:lib
((:name "websocket"
:path "~/.emacs.d/elpa/websocket-20130508.2229/websocket.elc"
:featurep t
:version-var websocket-version
:version "1.0")
(:name "request"
:path "~/.emacs.d/elpa/request-20130526.1915/request.elc"
:featurep t
:version-var request-version
:version "0.2.0")
(:name "auto-complete"
:path "~/.emacs.d/elpa/auto-complete-20130503.2013/auto-complete.elc"
:featurep t
:version-var nil
:version nil)
(:name "auto-complete"
:path "~/.emacs.d/elpa/auto-complete-20130503.2013/auto-complete.elc"
:featurep t
:version-var nil
:version nil)
(:name "popup"
:path "~/.emacs.d/elpa/popup-20130324.1305/popup.elc"
:featurep t
:version-var popup-version
:version "0.5.0")
(:name "fuzzy"
:path "~/.emacs.d/elpa/fuzzy-20120323.1044/fuzzy.elc"
:featurep nil
:version-var nil
:version nil)
(:name "python"
:path "c:/emacs-24.3/lisp/progmodes/python.elc"
:featurep t
:version-var nil
:version nil))) |
@EvanMisshula Thanks for the info. This is a tough one. I can only guess.
|
|
Fan, How are you starting ipython? (eg, $ipython notebook --pylab=inline) Thanks, On Fri, Jul 5, 2013 at 12:42 PM, Fan Zhang notifications@github.com wrote:
Evan Misshula "Instruction does much, but encouragement does everything." Johann Wolfgang |
Just simply Update: I checked my emacs, and there seems to be no curl.el anywhere. So I downloaded it from emacs-curl and placed the curl.el under site-lisp. I also downloaded curl.exe and placed it in my emacs bin folder. This folder is on my system path. Now the ipython notebook server shows 2013-07-05 13:47:31.806 [NotebookApp] Connecting to: tcp://127.0.0.1:50694 emacs give me ein: [info] Opened notebook list at 8888 |
No that should still work. :-( On Fri, Jul 5, 2013 at 1:59 PM, Fan Zhang notifications@github.com wrote:
Evan Misshula "Instruction does much, but encouragement does everything." Johann Wolfgang |
An update: I re-install winpython 64bit, which comes with ipython 0.13.2, and it worked. Notebook can be opened in Emacs, and plots displayed properly. However, I really love to have ipython 1.0 dev working, which allow for switching plotting backend. |
Great. Thanks for checking that. I'll try to infer the bug from the error log you posted. But as I said it is working fine in Linux I don't know if I can find the fix. Give me sometime. BTW, reqeust.el does not use curl.el. It uses curl command line program directly. |
IPython changed the way to start channel [1]. fixes #121 [1] see commit ipython/ipython@24dcb6b in ipython/ipython#3089
Actually the error log was informative. I think #122 fixed the problem. However, if we pull #122 it will stop working for IPython < 1.0 if you use password protected connection. As IPython 1.0 is not released yet, I am not sure if we want to pull it now. It is simple to add an option to switch 1.0/pre-1.0, though. But I'd like to know if it really fixes the problem. @fzhang00 Can you check that #122 fixes your problem? You can (1) download ein-kernel.el from #122, (2) replace it with your ein-kernel.el, (3) remove ein-kernel.elc if you have it and (4) restart Emacs. |
The fix from #122 is working with the ipython 1.0 dev downloaded today. |
Thank you for checking! |
Hi,
I had ein 20130611 installed on EMACS 24.3.1 through "marmalade, on 64 bit Windows 7.
When I open a notebook with inline plots, I got the following messages and the notebook would not open in emacs:
Contacting host: 127.0.0.1:8888 [2 times]
ein: [info] Kernel started: 15675e06-3ac6-455e-9417-183fb739e352
ein: [info] Starting WS: "ws://127.0.0.1:8888/kernels/15675e06-3ac6-455e-9417-183fb739e352"
ein: [info] Unknown event: status_busy.Kernel [2 times]
ein: [info] Unknown event: status_idle.Kernel
ein: [info] Unknown event: execution_count.Kernel
ein: [info] Unknown event: status_idle.Kernel
On the ipython notebook server side, it says
ERROR:root:First ws message didn't have the form 'identity:[cookie]' - ''
2013-07-05 10:20:33.915 [NotebookApp] Connecting to: tcp://127.0.0.1:63841
Notebook without images would open, but server side displays the same error message.
My installed packages are
python 2.7.5
ipython 1.0-dev
pyzmq==13.1.0
tornado==3.1
Any idea which package this error is related to? I had the same configuration on a 32 bit machine, and it works fine. Also the browser interface works fine for the notebook. But I would really like to get the Emacs bit working.
Thanks in advance for any tip.
Fan
The text was updated successfully, but these errors were encountered: